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)

6940 results

Instead of "Generate Database from Model," Entitiy Framework uses "Update Database from Model."

I have created a Entity Framework 4 model with Visual Studio 2010 and generated a database from it. Now I found myself adding new properties (with default values), changing documentation of columns, changing names of columns, changing types of columns sev...
entity-framework visual-studio-2010
asked by David

Entity framework MappingException: 'XXX' has been mapped several times.

I'm using Entity framework in web application. ObjectContext is created per request (using HttpContext), hereby code:...string ocKey = "ocm_" + HttpContext.Current.GetHashCode().ToString(); if (!HttpContext.Current.Items.Contains(ocKey)) { HttpContext...
.net c# entity-framework
asked by Michal

Exception code -532462766 complus

Using visual studio 2010, entity framework 4.0, ADO.NET POCO Entity Generator...On the code lines:...MecDbEnt.Domains.AddObject(subject);...MecDbEnt.SaveChanges(); (on this line)...the application throws follow exception:...complus exception code -53246...
c#-4.0 entity-framework exception visual-studio
asked by Masna

Large-scale application architecture in C#

Can you please tell me some tutorials/books about thinking a large application in c#. I have worked with 3 tier, but i need something more specific:...a way to design panels, so that for specific users specific panels will load and specific dlls a databas...
.net c# entity-framework
asked by psu

In MVC2 Entity Framework 4, server-side validation of a REQUIRED String Property does not function.

I'm trying to get server-side validation of an Entity Framework String Property to work. Other server-side validation such as data type validation and required dateTime and numeric EF properties are working. ...This in VS 2010, .Net 4.0, MVC2 + Cloud, ADO...
asp.net-mvc data-annotations entity-framework
asked by HackITMngr

Check for any modifications that need to be saved.

Is there a way to find out whether there are unsaved changes in my entity context, in the Entity Framework?
entity-framework entity-framework-4 entity-framework-5 entity-framework-6
asked by Palantir

EF4 and ASP.Net MVC LINQ - Join Two Entities into One IQueryable Complex Type

I have code like:... var entityX = this._xService.GetAll(); var entityY = this._yService.GetAll(); ...Both are returned as IEnumerable types. I need to inner join the two into a something like a JoinedList class that has to be IQueryable....I'm looking f...
asp.net-mvc entity-framework iqueryable linq
asked by Ted

Get a Date from DateTime using Linq to Entity.

var islemList = (from isl in entities.Islemler where (...isl.KayitTarihi.Date... >= dbas && isl....KayitTarihi.Value.Date... <= dbit) select isl);...It gives error: date is not supported in LINQ to Entities... How can i get date in linq.
.net c# entity-framework linq
asked by serkan

Auto increment, C#, entity framework

I'm learning Entity Framework under VC# 2010....I have created a simple table for learning purposes, one of the fields is "id" type integer, identity set to true. I've generated Entity Data Model from that table and connected it with dataGridView. The pro...
c# entity-framework
asked by migajek

Is it possible to convert an entity to a.csv file quickly?

at present, I have:... string outputRow = string.Empty; foreach (var entityObject in entityObjects) { outputRow = entityObject.field1 + "," + entityObject.Field2 etc.... } ...I'm still new to the Entity Framewor...
c# csv entity entity-framework object
asked by KevinDeus

In the foreach loop, use DeleteObject().

With Entity Framework, I try to delete some objects from my object context like that :...foreach (var item in context.Items.Where( i => i.Value > 50 ) ) { context.Items.DeleteObject(item); } ...With this code, I have a "Collection Was Modified" Excepti...
.net c# database entity-framework
asked by Patrice Pezillier

Using Entity Framework to insert many rows into a table

I’m having fun with EF and have come unstuck....Originally I used the following bit of code using standard linq that essentially enters some data into a table....ManagePreferencesDataContext manpref = new ManagePreferencesDataContext(); ...
c# entity-framework linq-to-entities
asked by Ricardo Deano

SaveChanges() in Entity Framework not working?

I use entity framework with Visual Studio 2008, sure it was SP1 both .NET Framework and VS itself. My application is develop in n-tier environment. First step I convert data from context to collection and serialize to user....HRMSDBContext context = new H...
c#-3.0 entity-framework
asked by Anonymous

Using Entity Framework to run a custom query

I want to execute custom query to get datetime of DB server ...select Getdate()... using entity framework. How can I do this?...Thanks
c# entity-framework winforms
asked by Muhammad Akhtar

Entity Framework adds a new object to the ObjectContext in C#.

im working with Entity Framework, SQL and C#....i have a Table called Client and other called clients_phone....I have a form with a Xtragrid and using BindingSource I bind the IQueryable to the grid....myBindingSource = new BindingSource(); myBindingSourc...
c# devexpress entity-framework objectcontext xtragrid
asked by Mark Comix

Obtaining all Entity Framework updates made to an object

Is there a way to get all the changes made to a object in the Entity Framework before it saves all changes. The reason for this is that i want to create a log table in our clients database:...so......Is there a way to get the current database values(old) ...
c# entity-framework
asked by Willem

Transactions and the.NET Entity Framework

Being new to the Entity Framework, I'm really rather stuck on how to proceed with this set of issues. On the project I am currently working on, the entire site is heavily integrated with the EF model. At first, the access to the EF context was being contr...
.net entity-framework sql-server-2005
asked by sicknote

On Records, Entity Framework calls MAX on null.

When calling Max() on an IQueryable and there are zero records I get the following exception....The cast to value type 'Int32' failed because the materialized value is null. Either the result type's generic parameter or the query must use a nullable type...
entity-framework
asked by bleevo

Trying to choose between NHibernate and Entity Framework?

What are the main advantages and disadvantages of NHibernate and Entity Framework 4.0?...(While tagging my question, I've noticed more NHibernate tags than EF. Is NHibernate more popular?)
entity-framework nhibernate orm
asked by Sahat Yalkabov

Error: A query's result can't be enumerated more than once.

Call SP in EF 4.0 in following code:... public IQueryable<Employee> GetEmployeesByFollowup() { var results = from p in this.ObjectContext.SearchEmployeeFollowup() select p; foreach (Employee p in ...
domainservices entity-framework
asked by KentZhou

Page 22 of 347
  • ««
  • «
  • …
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • …
  • »
  • »»

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!