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)

16 results in tag: .net-4.0

Assuring DateTime properties return DateTimeKind.Utc

Is it possible to define DateTime properties in entity objects that are of ...Kind == DateTimeKind.Utc... by using either the .edmx file, or a t4 template?...When possible using t4, please describe how to change the property. Currently the property gets ...
.net-4.0 entity-framework linq-to-entities
asked by Sander Rijken

Using a Complex Type in Entity Framework vs. Creating a New Entity

I'm reading about the Entity Framework 4.0 and I was wondering why should I create a complex type and not a new Entity (Table) and a relation between them?
.net .net-4.0 c# entity-framework
asked by Ronny

What's the difference between Entity Framework and.NET 4.0's LINQ to SQL?

I was checking ...2nd edition of Professional ASP.NET MVC... and realized EF replaced LINQ to SQL. I am familiar to LINQ to SQL from the first book but I know nothing about EF. Anyway while reading the code, it seems like nothing has changed except the na...
.net .net-4.0 entity-framework linq-to-sql
asked by Ufuk Hacıoğulları

Using the SQL column type uniqueidentifier with Entity Framework

For my primary key and identity in our Clients table I use ...uniqueidentifier... column with a default value set to newsequentialid(). Inserting new rows through the management tool creates the values for the ID fine. ...Inserting from .NET 4 code via EF...
.net .net-4.0 entity-framework sql-server
asked by mare

Entity-Framework to Update Exception?

Hi,...I am using EntityFramework for my ASP.NET MVC website but have some problems with the update....This is how my update code looka like :...using (BissEntities context = new BissEntities()) { if (adCategoryFilter.Id < 1) context.Add...
.net-4.0 asp.net-mvc c# entity-framework
asked by Banshee

Adding an additional item to a dropdownlist datasource from C#

I have a ...DropDownList... that is associated with a ...DataSource... in the aspx page. I need to add one more item when the page is loaded. ...My Code:...<asp:LabelDropDownList ID="ddlVisualTemplate" runat="server" LabelText="Visual Template:" Data...
.net-4.0 asp.net c# drop-down-menu entity-framework
asked by Sami

How to make a deep duplicate of an object

I found this snippet ...here...: ...public static T DeepClone<T>(this T obj) { using (var ms = new MemoryStream()) { var bf = new BinaryFormatter(); bf.Serialize(ms, obj); ms.Position = 0; return...
.net-4.0 c# entity-framework
asked by user194076

What is the best way to convert this IQueryablePatient> to a DbSetPatient>?

This should be straightforward but I'm getting tripped up on the line inside the IF block. The error on that line is ..."Cannot implicitly convert type 'System.Linq.IQueryable[Patient]' to 'System.Data.Entity.DbSet[Patient]'. An explicit conversion exis...
.net-4.0 asp.net-mvc entity-framework
asked by Joe

When using Dapper with Entity Framework, should table constraints be relaxed or disabled?

I would like to set a do something like this ...dataSet1.EnforceConstraints = false;... using the Dapper.Net ORM and Entity Framework....I created the models in VS2010 where a property:... [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable...
.net-4.0 dapper edmx entity-framework
asked by ElHaix

Entity framework Include command - Left or inner join?

As I was investigating the difference between ...Include... and ...Join... I found that : ...If the DB ...does not... include a Foreign Keys -it has no navigation props so it's better to use ...Join...If It ...does... have a navigation props - then use ....
.net-4.0 c# entity-framework linq linqpad
asked by Royi Namir

Does Entity Framework 6 support .NET 4.0?

I believe Entity Framework 6 is intended for .NET 4.5. I'm wanting to use it for a Visual Studio 2010 project, so .NET 4.5 isn't available....Does it support .NET 4.0 and hence Visual Studio 2010?
.net-4.0 entity-framework-6
asked by Sam

Does Entity Framework 6 precompile queries with .Net Framework 4.0

Question title really says it all, but I can't seem to find this tidbit of information anywhere. A comment here ( ...https://stackoverflow.com/a/13224381/215068...) is the best I've found....Will EF 6 (6.0.1) precompile views when using the .NET Framewor...
.net-4.0 entity-framework entity-framework-6 precompiled
asked by EBarr

EF 6 dependency on System.Data.Entity

With EF6, my understanding is that all EF related classes have been moved into EntityFramework.dll. I see following code that is using DbContext class ...namespace ConsoleApplication1 { using System; using System.Data.Entity; using System.Data...
.net-4.0 c# entity-framework-6
asked by BKS

.NET 4.0 DataAnnotations GAC/EntityFramework conflict

I'm trying to build an ASP.NET web site for Microsoft .NET 4.0 using Entity Framework 6. The website is explicitly targetting .NET 4.0 in ...web.config...:...<compilation debug="true" targetFramework="4.0">..., IIS Express' application pool in ...applicat...
.net asp.net entity-framework-6 gac
asked by Aleksei Omelaienko

EF6 with SQLite in .NET 4.0 Code-Based Configuration: "Unable to Determine the DbProviderFactory"

I am trying to get EF6 Code-Based Configuration to work with SQLite in .NET 4.0. In my target application ...App.config... is auto-generated so editing that is very painful. Initially when installing EF6 to SQLite through NuGet to my test application it g...
.net-4.0 c# ef-code-first entity-framework-6
asked by Silvyrfir

Prepare a List of fields and displaynames for each DbSet in DbContext

In my project (MVC5, EF6, .Net4.8), I need to prepare a document that contains the list of all field names and their DisplayNames. For example, I have the following Classes in my DbContext:...public class Teacher { [Key] public int Id { get; set; ...
.net-4.0 asp.net-mvc-5 c# ef-database-first entity-framework-6
asked by Mtsharif

Page 1 of 1
  • 1

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!