{"id":4095,"date":"2013-09-10T05:21:31","date_gmt":"2013-09-09T19:21:31","guid":{"rendered":"http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=4095"},"modified":"2015-05-23T16:06:59","modified_gmt":"2015-05-23T06:06:59","slug":"asp-net-dynamic-data-entity-framework-primer-tutorial","status":"publish","type":"post","link":"https:\/\/www.rjmprogramming.com.au\/ITblog\/asp-net-dynamic-data-entity-framework-primer-tutorial\/","title":{"rendered":"ASP.Net Dynamic Data Entity Framework Primer Tutorial"},"content":{"rendered":"<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/ASPNet\/ADONet\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"ASP.Net Dynamic Data Entity Framework Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/ASPNet\/ADONet\/ASPNet_ADONet_Primer-93of.jpg\" title=\"ASP.Net Dynamic Data Entity Framework Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">ASP.Net Dynamic Data Entity Framework Primer Tutorial<\/p><\/div>\n<p>Today&#8217;s tutorial integrates an SQL Server database with an ASP.Net website using dynamic data (<a target=_blank title='ADO.NET information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/ADO.NET'>ADO.NET<\/a>) entity framework (also look up <a target=_blank title='CRUD information at Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Create,_read,_update_and_delete'>CRUD<\/a>), building on previous <a target=_blank title='Sql Server Stored Procedure Primer Tutorial' href='#sssppt'>Sql Server Stored Procedure Primer Tutorial<\/a> as shown below.    The word dynamic is very suitable for this great database intelligence method, which can save so much time for programmers (hence the term CRUD being so apt!) organizing the database objects they need to get a job done.   So here we have a Visual Studio \/ .Net Framework \/ Windows \/ Microsoft take on the integration of these concepts.  In the marketplace there are others, such as the Advantage database relationship with Delphi, for instance.   In weeks to come we may visit some of these other &#8220;integrators&#8221;.<\/p>\n<p>In the meantime enjoy this <a target=_blank title='ASP.Net Dynamic Data Entity Framework Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/ADONet\/'>tutorial<\/a> showing you some pretty nifty database\/web integration techniques.<\/p>\n<p>Downloadable ASP.Net (VB.Net) programming source code here for <a target=_blank title='Global.asax.vb' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/ADONet\/Global.asax.vb_GETME'>Global.asax.vb<\/a><\/p>\n<p>Downloadable ASP.Net configuration file here for <a target=_blank title='web.configl' href='http:\/\/www.rjmprogramming.com.au\/ASPNet\/ADONet\/web.config_GETME'>web.config<\/a><\/p>\n<p>Will leave you with good Microsoft link about <a target=_blank title='Accessing Data with ADO.NET' href='http:\/\/msdn.microsoft.com\/en-us\/library\/e80y5yhx.aspx'>ADO.NET<\/a> &#8230; so, for now, adios ADO.NET!<\/p>\n<hr \/>\n<p id=\"sssppt\">Previous <a target=_blank title='Sql Server Stored Procedure Primer Tutorial' href='http:\/\/www.rjmprogramming.com.au\/wordpress\/?p=3866'>Sql Server Stored Procedure Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/MS-SQL\/StoredProcedure\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"Sql Server Stored Procedure Primer Tutorial\" src=\"http:\/\/www.rjmprogramming.com.au\/MS-SQL\/StoredProcedure\/MSSQL_StoredProcedure-Primer-5of.jpg\" title=\"Sql Server Stored Procedure Primer Tutorial\"   \/><\/a><p class=\"wp-caption-text\">Sql Server Stored Procedure Primer Tutorial<\/p><\/div>\n<p>Today&#8217;s tutorial, which builds on the <a href=\"#sssppt\" title='SQL Server Primer Tutorial'>SQL Server Primer Tutorial<\/a>, uses Microsoft&#8217;s great Sql Server Management Studio to oversee the results of some T-SQL code calls to create tables called POINT and CIRCLE used to store information defining a circle, and then it creates a Sql Server stored procedure in the database to help add circle data with the single Sql Server statement that goes <em>EXECUTE AddCircle x, y, radius<\/em> via the use of that stored procedure.  The tutorial takes place on a Windows laptop.  Let&#8217;s see below what <a target=_blank title='Stored Procedures information from Wikipedia' href='http:\/\/en.wikipedia.org\/wiki\/Stored_procedure'>Wikipedia<\/a> says about Stored Procedures generally.<\/p>\n<blockquote><p>A stored procedure is a subroutine available to applications that access a relational database system. A stored procedure (sometimes called a proc, sproc, StoPro, StoredProc, sp or SP) is actually stored in the database data dictionary.<\/p>\n<p>Typical use for stored procedures include data validation (integrated into the database) or access control mechanisms. Furthermore, stored procedures can consolidate and centralize logic that was originally implemented in applications. Extensive or complex processing that requires execution of several SQL statements is moved into stored procedures, and all applications call the procedures. One can use nested stored procedures by executing one stored procedure from within another.<\/p>\n<p>Stored procedures are similar to user-defined functions (UDFs). The major difference is that UDFs can be used like any other expression within SQL statements, whereas stored procedures must be invoked using the CALL statement.[1]<\/p><\/blockquote>\n<p>Here is some downloadable T-SQL code which shows the Sql Server SQL commands performed and can be renamed to <a target=_blank title='AddCircle.sql' href='http:\/\/www.rjmprogramming.com.au\/MS-SQL\/StoredProcedure\/AddCircle.sql_GETME'>AddCircle.sql<\/a> as required.<\/p>\n<p>Please enjoy today&#8217;s <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/MS-SQL\/StoredProcedure\/\" title=\"Sql Server Stored Procedures Primer Tutorial\">tutorial<\/a>.<\/p>\n<hr \/>\n<p id='sssppt'>Previous <a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/MS-SQL\/SQLServerManagementStudioExample\/\" title='SQL Server Primer Tutorial'>SQL Server Primer Tutorial<\/a> is shown below.<\/p>\n<div style=\"width: 230px\" class=\"wp-caption alignnone\"><a target=_blank href=\"http:\/\/www.rjmprogramming.com.au\/MS-SQL\/SQLServerManagementStudioExample\/\"><img decoding=\"async\" style=\"float:left; border: 15px solid pink;\" alt=\"SQL Server Primer Tutorial ... thanks to UTS SQL Server 2008 Course Notes\" src=\"http:\/\/www.rjmprogramming.com.au\/MS-SQL\/SQLServerManagementStudioExample\/Microsoft_SQL-Server_Management_Studio_4of.JPG\" title=\"SQL Server Primer Tutorial ... thanks to UTS SQL Server 2008 Course Notes\"  \/><\/a><p class=\"wp-caption-text\">SQL Server Primer Tutorial ... thanks to UTS SQL Server 2008 Course Notes<\/p><\/div>\n<p>Welcome to the SQL Server Primer Tutorial &#8230; or SSPT for short (although by the time you explain it<a target=_blank href='http:\/\/grammar.quickanddirtytips.com\/double-is-double-has.aspx' title='The doubled word rule' id='doubleit' onclick='var xx=document.getElementById(\"doubleit\");  if (xx.innerHTML.indexOf(\",\") != (0 - 1)) { xx.innerHTML = \" \"; } else { xx.innerHTML = \",\"; }'>,<\/a> it is not so short anymore).<\/p>\n<blockquote><p>Microsoft SQL Server is a relational database management system developed by Microsoft. As a database, it is a software product whose primary function is to store and retrieve data as requested by other software applications, be it those on the same computer or those running on another computer across a network (including the Internet). There are at least a dozen different editions of Microsoft SQL Server aimed at different audiences and for different workloads (ranging from small applications that store and retrieve data on the same computer, to millions of users and computers that access huge amounts of data from the Internet at the same time). Its primary query languages are T-SQL and ANSI SQL.<\/p><\/blockquote>\n<p>There is no doubt that SQL Server is a great database to use and that T-SQL is an excellent tool to learn and use in conjunction with the Visual Studio suite of Visual C++,C#,VB.Net and ASP.Net products, where its integration is brilliant.   Like the hand and glove &#8230; like <a target=_blank href='https:\/\/www.youtube.com\/watch?v=YFI0rFFp8j8' title='Fred and Ginger'>Fred and Ginger<\/a>.<\/p>\n<p>In the primer tutorial you can see  <a target=_blank title='click picture' href='http:\/\/www.rjmprogramming.com.au\/MS-SQL\/SQLServerManagementStudioExample\/'>Microsoft SQL Server Management Studio<\/a> 2008 R2 after a successful install.    Installs of SQL Server can result from a variety of paths, including during installs of Visual Studio (Express) .<\/p>\n<p>Link to SQL Server more information &#8230; <a target=_blank href='http:\/\/en.wikipedia.org\/wiki\/Microsoft_SQL_Server' title='Link to SQL Server more information'>via Wikipedia, from where quote above came<\/a>.<br \/>\nLink to SQL Server &#8220;spiritual home&#8221; &#8230; <a target=_blank href='http:\/\/www.microsoft.com\/en-us\/sqlserver\/product-info.aspx' title='As the foundation of the cloud-ready information platform, SQL Server 2012 will help organizations unlock breakthrough insights across the organization as well as quickly build solutions and extend data across on-premises and public cloud backed by mission critical confidence. '>via Microsoft, includes talk about (the recent) SQL Server 2012, and about download options<\/a>.<br \/>\nLink to SQL Server jobs done &#8230; <a target=_blank href='http:\/\/www.rjmprogramming.com.au\/MS-SQL\/' title='Examples of use of SQL Server'>SQL Server jobs done<\/a> &#8230; some of personal experience.\n<\/p>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d746' onclick='var dv=document.getElementById(\"d746\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=47\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d746' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr \/>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d3866' onclick='var dv=document.getElementById(\"d3866\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=47\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d3866' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n<hr \/>\n<p>If this was interesting you may be interested in <a title='Click here to see topics in which you might be interested' href='#d4095' onclick='var dv=document.getElementById(\"d4095\"); dv.innerHTML = \"&lt;iframe width=670 height=600 src=\" + \"http:\/\/www.rjmprogramming.com.au\/wordpress\/?cat=47\" + \"&gt;&lt;\/iframe&gt;\"; dv.style.display = \"block\";'>this<\/a> too.<\/p>\n<div id='d4095' style='display: none; border-left: 2px solid green; border-top: 2px solid green;'><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Today&#8217;s tutorial integrates an SQL Server database with an ASP.Net website using dynamic data (ADO.NET) entity framework (also look up CRUD), building on previous Sql Server Stored Procedure Primer Tutorial as shown below. The word dynamic is very suitable for &hellip; <a href=\"https:\/\/www.rjmprogramming.com.au\/ITblog\/asp-net-dynamic-data-entity-framework-primer-tutorial\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,9,12,37,39],"tags":[62,106,1570,292,299,389,782,997,1187,1319,1383,1435],"class_list":["post-4095","post","type-post","status-publish","format-standard","hentry","category-data-integration","category-database","category-elearning","category-tutorials","category-visual-studio","tag-ado-net","tag-asp-net","tag-crud","tag-data-integration-2","tag-database-2","tag-entity-framework","tag-microsoft","tag-programming","tag-sql-server","tag-tutorial","tag-visual-studio","tag-windows"],"_links":{"self":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4095"}],"collection":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/comments?post=4095"}],"version-history":[{"count":1,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4095\/revisions"}],"predecessor-version":[{"id":14985,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/posts\/4095\/revisions\/14985"}],"wp:attachment":[{"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/media?parent=4095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/categories?post=4095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rjmprogramming.com.au\/ITblog\/wp-json\/wp\/v2\/tags?post=4095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}