Posts

Showing posts with the label ADO.Net Entity Framework

Entity Framework 4.0 and POCO Performance

This link explains Entity Framework 4.0 and POCO Performance http://sharedtolearn.blogspot.com/2010/05/entity-framework-40-poco-performance.html

Generate ADO.Net Entity Framework Connection String on RunTime

When application uses ADO.Net Entity framework, by default connection string saves in web.config file. We can delete the default connection string from web.config file and pass the connection string to the context object as follows.   using System.Data.SqlClient; using System.Data.EntityClient; //ConnectionString would be normal sql connection string  string connectionString = ConfigurationManager .ConnectionStrings[ "ConnectionString" ].ConnectionString;                SqlConnectionStringBuilder sqlBuilder = new SqlConnectionStringBuilder (connectionString); EntityConnectionStringBuilder entityBuilder = new EntityConnectionStringBuilder (); entityBuilder.Provider = "System.Data.SqlClient" ; entityBuilder.ProviderConnectionString = sqlBuilder.ToString(); entityBuilder.Metadata = @"res://*/Entities.csdl|res://*/ Entities.ssdl|res://*/ Entities.msl" ;   EntityConnection conn = ne...

Create ADO.Net Entity Framework Complex Type

Complex Type creation in ADO.Net Framework: http://blogs.msdn.com/b/nihitk/archive/2010/04/23/ado-net-entity-designer-in-vs-2010-stored-procedure-return-type-shape-sensing.aspx Table Valued Functions Mapping: http://blogs.msdn.com/b/efdesign/archive/2011/01/21/table-valued-function-support.aspx

ADO.Net Entity Framework vs Linq to Sql Classes

http://www.scip.be/index.php?Page=ArticlesNET12

Advanced ADO.Net Entity Framework

http://blogs.msdn.com/meek/ http://sharedtolearn.blogspot.com/ EF 4.0 http://blogs.msdn.com/b/somasegar/archive/2010/01/11/entity-framework-in-net-4.aspx Defining Advanced Models: http://msdn.microsoft.com/en-us/library/bb738640.aspx EF 4.0 Videos: http://www.youtube.com/watch?v=nkrYxGUZmvg   Entity Splitting & Table Splitting: http://www.robbagby.com/index.php?s=Entity+splitting