I've been coming up with a lot of dead ends on this question. Supposedly, .NET 3.5 SP1 has Support for ADO.NET Entity Framework entities in WCF contracts. But when I look for solid info on it I'm not getting a lot of answers. I found this one snippet on...
It seems that serializing Entity Framework objects into JSON is not possible using either WCF's native DataContractJsonSerializer or ASP.NET's native JavaScript serializer. This is due to the reference counting issues both serializers reject. I have also ...
Using VS 2008 & .NET 3.5 SP1:...I am using WCF to allow clients to connect to a service that reads and writes database entries using Entity Framework. By default the entities that are generated automatically from the database have the DataContract attrib...
I am really having a hard time here. I need to design a "Desktop app" that will use WCF as the communications channel. Its a multi-tiered application (DB and application server are the same, the client goes through the internet cloud)....The application i...
While using the Entity Framework I have split it out to it's own project:...RivWorks.Model - Contains Entity Model...RivWorks.Controller - Uses the Entity Model and contains the biz rules...RivWorks.View.Web - The web site...RivWorks.View.Services - WCF p...
Last year I developed a data access service for our project using Entity Framework (.NET3.5 of course) and using Julie Lerhman's book as a guide developed state tracking POCO objects. We use WCF and also have Silverlight 3 clients. We are moving to .NET 4...
I've been stuck with this problem for over a week now. Hopefully some one can point me in the right direction....I start with a brief description of my schema....Asset 1--->1 Address *-->1 Area *-->1 Region *-->1 Country...Package 1-->* Asset...Using Self...
The only way that my WCF service can return classes from a code first model is by setting the ...ProxyCreationEnable... to ...false... using the code below....((IObjectContextAdapter)MyDb).ObjectContext.ContextOptions.ProxyCreationEnable = false;
...What ...
I have an EF4 model with a stored procedure that I want to call from the client.
The server code looks like this:...[WebGet]
public IQueryable<SalesData> GetSalesReport(int reportType, int yr, int m, int d)
{
DateTime dt = new DateTime(yr, m, ...
I am using the excellent Json.Net library to serialize my entities generated by entity framework. I use the following code to do so :...using (MyVoucherEntities context = new MyVoucherEntities())
{
List<MyObject> list = context.MyObjects.ToList();
str...
I've a MS SQL 2008 database which is accessed through LINQ for data update/retrival....My linq is accessed by WCF services in a PerCall instantiation mode for an heavy application. This application has several thread which makes calls to the service, and ...
I am developing a WCF Data Service. when I try accessing it from the client side, I get this exception :...The ObjectContext instance has been disposed and can no longer be used for operations that require a connection....Code:...[WebGet]
public IQueryabl...
I am using EntityFramework to persist my entities....The problem I have is that when sending an entity constructed in Silverlight over a WCF to be peristed I get the error 'An item cannot be removed from a fixed size Array of type 'CarterShop.Commerce.Ent...
This is how we implement a generic Save() service in WCF for our EF entities. A TT does the work for us. Even though we don't have any problems with it, I hate to assume this is the best approach (even if it might be). You guys seem pretty darn bright and...
I am successfully running tests through the the WCF Test Client, until I try to pull in data with Entity Framework....To make sure I'm not doing anything stupid, I downloaded the sample code from this tutorial, which is doing something similar: ...http://...
I am trying to build a lambda expression that will be combined with others into a rather large expression tree for filtering. This works fine until I need to filter by a sub collection property....How do you build a Lambda expression that will filter usin...
iv'e got a wcf service host hosting a service on IIS7, ...iv'e added a database to it's App_Data folder ,...the service is referenced to a DAL project ...which holds an Entity Framework model generated from my DB ( The DB from the WCF Service Host )...i ...
I am planning on creating a new data-driven Client/Server application with the flexibility to have WPF, Silverlight, and mobile clients. I am already well versed in WPF and need to learn how to implement the back end. Everything I've read is pointing me...
ServiceContract...[OperationContract]
List<Campaign> AttainCampaigns();
...Works when Instantiating Objects Directly...public List<Campaign> AttainCampaigns()
{
var campaign1 = new Campaign { Id = "x", Name = "namex" };
var campaign2 = new Campaig...
Another rather large title.....Just some basic info first: using .NET 4 / EF 4.x / visual studio 2010 sp1....I have a WCF REST based service which is using JSON as the data transport. I have used the example (sure there are others describing this too) fr...