zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

51 results in tag: wcf

Entity Framework WCF Contracts?

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...
entity-framework wcf
asked by Weej

JSON serialize Entity Framework objects

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 ...
asp.net-ajax entity-framework json wcf
asked by Program.X

Entity Framework, WCF, and Data Contracts

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...
datacontract entity-framework wcf
asked by Malcolm

Entity Framework, DataSet, or Custom Classes: Which Should I Use?

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...
c# dataset entity-framework wcf
asked by user203252

The underlying provider failed on ConnectionString in Entity Framework.

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...
asp.net c# connection entity-framework wcf
asked by Keith Barrows

Snapshot vs. Self-tracking via WCF in EF4 POCO

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...
entity-framework poco self-tracking-entities snapshot wcf
asked by MrLane

AcceptChanges is unable to proceed because the object's key values contradict with those of another object in the ObjectStateManager.

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...
entity-framework objectcontext self-tracking-entities wcf
asked by Tri Q Tran

What are the drawbacks of initially turning off ProxyCreationEnabled for EF code CTP5?

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 ...
c# entity-framework proxy-classes serialization wcf
asked by Ralph Shillington

Client-side call to a WCF DataService [WebGet] function

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, ...
entity-framework odata stored-procedures wcf
asked by Ronny

When serializing my entities using Json.Net, I get unexpected characters ("").

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...
c# entity-framework json.net wcf
asked by Renaud

Entity Framework provides concurrent database access == EntityException

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 ...
concurrency entity-framework multithreading sql wcf
asked by J4N

The ObjectContext object has been deleted and cannot be utilized for any activities that require a connection.

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...
c# entity-framework exception-handling wcf wcf-data-services
asked by Attilah

'An item cannot be deleted from a fixed size Array of type *[]', says Entity Framework.

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...
.net entity-framework silverlight wcf
asked by James

Best Practice for EF4/WCF SaveChanges()

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...
entity-framework savechanges self-tracking-entities wcf
asked by Jerry Nixon

"The underlying provider failed on Open" with WCF, Entity Framework, and SQL Server

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://...
c# entity-framework sql-server visual-studio wcf
asked by iKode

To filter on a collection property, create a dynamic expression tree.

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...
c# entity-framework filtering lambda wcf
asked by George

The underlying provider fails to open, resulting in an entity exception.

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 ...
entity-framework wcf
asked by eran otzap

A good example of using WPF, WCF, and Entity Framework together.

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...
azure c# entity-framework wcf wpf
asked by Trevor Elliott

WCF proxy ProcessGetResponseWebException on HttpChannelRequest WaitForReply

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...
asp.net c# entity-framework exception-handling wcf
asked by Cel

WCF REST service (JSON) and using my model data with entity framework database first

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...
.net c# entity-framework rest wcf
asked by Dav.id

Page 1 of 3
  • 1
  • 2
  • 3
  • »

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!