i have 2 question regarding LINQ & Entity Frameworkhttp://forums.asp.net/t/1804558.aspx/1?i+have+2+question+regarding+LINQ+Entity+FrameworkSat, 19 May 2012 00:12:24 -040018045584984588http://forums.asp.net/p/1804558/4984588.aspx/1?i+have+2+question+regarding+LINQ+Entity+Frameworki have 2 question regarding LINQ & Entity Framework <p>1) how many type of technique are there to work with Entity Framework like</p> <p>code first , model&nbsp; first &amp; database first. am i right</p> <p>please discuss about what is ode first , model&nbsp; first &amp; database first concept and their differences .</p> <p></p> <p>2) please discuss all the points regarding the difference between LINQ &amp; Entity Framework?</p> <p>hoping to get elaborate discussion. thanks</p> <p></p> 2012-05-17T06:05:17-04:004984719http://forums.asp.net/p/1804558/4984719.aspx/1?Re+i+have+2+question+regarding+LINQ+Entity+FrameworkRe: i have 2 question regarding LINQ & Entity Framework <p>Hi,</p> <ol> <li>Code-First: Good if you already have a clear model, and the project start from scratch </li><li>Model-First: if you design entities when we work together with other team, IE: User, designer, developer,&nbsp;and other stake holder,&nbsp;like using modelling on Visual Studio, it's non technical works </li><li>Database-First:&nbsp;we do not have an choice when we create a project using existing database. </li><li>General: It's good to know them all, in some cases one of them is better, in other case is not. </li></ol> <p>Unfortunately I am not a good person to describe things.</p> <p>c u</p> 2012-05-17T07:28:40-04:004984733http://forums.asp.net/p/1804558/4984733.aspx/1?Re+i+have+2+question+regarding+LINQ+Entity+FrameworkRe: i have 2 question regarding LINQ & Entity Framework <p>Hi</p> <p>I forgot the second point: </p> <blockquote><span class="icon-blockquote"></span> <h4>mou_inn</h4> the difference between LINQ &amp; Entity Framework?</blockquote> <p></p> <p>Based on my experience, I can not compare both of them. To me,&nbsp;they are&nbsp;diffrent things. We can use LINQ at the same time we use EF. Also we can use both SQL Command and LINQ at the same time we use EF. Using LINQ is much easier, but for bulky data it can be inefficient, we need to consider performance. Or when we general update one column on a database, we do not need to bring the data into Web Server, just send the&nbsp;SQL command to SQL Server and let the SQL server do&nbsp;the Update Command&nbsp;without data traffic&nbsp;on networks.</p> <p>c&nbsp;u&nbsp;</p> 2012-05-17T07:35:04-04:004985540http://forums.asp.net/p/1804558/4985540.aspx/1?Re+i+have+2+question+regarding+LINQ+Entity+FrameworkRe: i have 2 question regarding LINQ & Entity Framework <p>On CF/DF/MF, see this tutorial:</p> <p><a href="http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application">http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/creating-an-entity-framework-data-model-for-an-asp-net-mvc-application</a></p> <p>On EF vs. L2S: L2S is supported but is no longer being developed by Microsoft. EF is continuing to be improved and is the recommended choice unless you are working with a legacy system that already uses L2S.</p> 2012-05-17T14:04:52-04:004987719http://forums.asp.net/p/1804558/4987719.aspx/1?Re+i+have+2+question+regarding+LINQ+Entity+FrameworkRe: i have 2 question regarding LINQ & Entity Framework <p></p> <blockquote><span class="icon-blockquote"></span> <h4>mou_inn</h4> 2) please discuss all the points regarding the difference between LINQ &amp; Entity Framework?</blockquote> <p></p> <p>The very important point is that EF supports Many-To-ManyOne-To-One or One-to-Many relationship among tablescompared with thisLINQ only supports One-to-Many or One-To-One relationshipnot directly support Many-To-Manyso in the LINQ's diagramyou have to see two &quot;One-To-Many&quot; to express &quot;Many-To-Many&quot;</p> <p>For more about thisyou can also refer this</p> <p><a href="http://stackoverflow.com/questions/8676/entity-framework-vs-linq-to-sql">http://stackoverflow.com/questions/8676/entity-framework-vs-linq-to-sql</a></p> 2012-05-19T00:12:24-04:00