entity_framework_code_first_succinctly.pdf

Upload: zoranmatusko

Post on 01-Jun-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    1/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    2/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    3/122

    http://www.syncfusion.com/http://www.syncfusion.com/http://www.syncfusion.com/
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    4/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    5/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    6/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    7/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    8/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    9/122

    https://www.facebook.com/Syncfusionhttp://twitter.com/Syncfusionmailto:[email protected]
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    10/122

    http://www.twitter.com/rjperes75http://weblogs.asp.net/ricardopereshttp://www.criticalsoftware.com/http://www.criticalsoftware.com/
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    11/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    12/122

    https://entityframework.codeplex.com/http://www.nuget.org/http://git-scm.com/http://www.nuget.org/
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    13/122

    https://git01.codeplex.com/entityframework.githttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.sqlconnectionfactory.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.database.defaultconnectionfactory.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.database.defaultconnectionfactory.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.idbconnectionfactory.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspxhttp://technet.microsoft.com/en-us/library/hh510202.aspxhttp://www.microsoft.com/en-us/sqlserver/editions/2012-editions/compact.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    14/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.sqlceconnectionfactory.aspxhttp://www.microsoft.com/en-us/sqlserver/editions/2012-editions/compact.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    15/122

    http://www.microsoft.com/en-us/download/details.aspx?id=29062
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    16/122

    https://bitbucket.org/syncfusiontech/entity-framework-code-first-succinctly/overviewhttps://bitbucket.org/syncfusiontech/entity-framework-code-first-succinctly/overview
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    17/122

    http://msdn.microsoft.com/en-us/library/system.data.common.dbconnection.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspxhttp://msdn.microsoft.com/en-us/library/gg696460.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    18/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    19/122

    http://www.martinfowler.com/bliki/AnemicDomainModel.htmlhttp://msdn.microsoft.com/en-us/library/system.object.tostring.aspxhttp://msdn.microsoft.com/en-us/library/bb359438.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    20/122

    http://technet.microsoft.com/en-us/library/ms176089.aspxhttp://technet.microsoft.com/en-us/library/ms187745.aspxhttp://technet.microsoft.com/en-us/library/ms177603.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    21/122

    http://technet.microsoft.com/en-us/library/ms188362.aspxhttp://technet.microsoft.com/en-us/library/ms187339.aspxhttp://technet.microsoft.com/en-us/library/ms186939.aspxhttp://technet.microsoft.com/en-us/library/ms176089.aspxhttp://technet.microsoft.com/en-us/library/bb677243.aspxhttp://technet.microsoft.com/en-us/library/bb630289.aspxhttp://technet.microsoft.com/en-us/library/bb677335.aspxhttp://technet.microsoft.com/en-us/library/ms182418.aspxhttp://technet.microsoft.com/en-us/library/ms187819.aspxhttp://technet.microsoft.com/en-us/library/bb630352.aspxhttp://technet.microsoft.com/en-us/library/ms187942.aspxhttp://technet.microsoft.com/en-us/library/ms179882.aspxhttp://technet.microsoft.com/en-us/library/ms179882.aspxhttp://technet.microsoft.com/en-us/library/ms173773.aspxhttp://technet.microsoft.com/en-us/library/ms173773.aspxhttp://technet.microsoft.com/en-us/library/ms187745.aspxhttp://technet.microsoft.com/en-us/library/ms187745.aspxhttp://technet.microsoft.com/en-us/library/ms187745.aspxhttp://technet.microsoft.com/en-us/library/ms186939.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    22/122

    http://technet.microsoft.com/en-us/library/cc280487.aspxhttp://technet.microsoft.com/en-us/library/cc280766.aspxhttp://technet.microsoft.com/en-us/library/ms187745.aspxhttp://technet.microsoft.com/en-us/library/ms182776.aspxhttp://technet.microsoft.com/en-us/library/ms188362.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    23/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    24/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    25/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.tableattribute.aspxhttp://msdn.microsoft.com/en-us/library/92t2ye13.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    26/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.maxlengthattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.maxlengthattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.requiredattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.columnattribute.order.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.columnattribute.order.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.columnattribute.typename.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.columnattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.tableattribute.schema.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    27/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.databasegeneratedattribute.aspxhttp://msdn.microsoft.com/en-us/library/gg696418.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.columnattribute.order.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.columnattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.keyattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.notmappedattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.notmappedattribute.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    28/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.inversepropertyattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.foreignkeyattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.foreignkeyattribute.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    29/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.complextypeattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.databasegeneratedoption.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.databasegeneratedattribute.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    30/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.metadatatypeattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.metadatatypeattribute.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    31/122

    http://msdn.microsoft.com/en-us/library/gg696460.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.onmodelcreating.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbmodelbuilder.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    32/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    33/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    34/122

    http://technet.microsoft.com/en-us/library/ms186775.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.databasegeneratedoption.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.schema.databasegeneratedattribute.aspxhttp://technet.microsoft.com/en-us/library/ms186775.aspxhttp://technet.microsoft.com/en-us/library/ms186775.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    35/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    36/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    37/122

    http://martinfowler.com/eaaCatalog/index.html
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    38/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    39/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    40/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.typenameforeignkeydiscoveryconvention(v=vs.103).aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.primarykeynameforeignkeydiscoveryconvention(v=vs.103).aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.navigationpropertynameforeignkeydiscoveryconvention(v=vs.103).aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.associationinversediscoveryconvention(v=vs.103).aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.idkeydiscoveryconvention(v=vs.103).aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.pluralizingtablenameconvention(v=vs.103).aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspxhttp://msdn.microsoft.com/en-us/library/gg696460.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.iconvention.aspxhttp://c/Users/Graham/Desktop/ebooks/Entity%20Framework%20Code%20First/OnModelCreatinghttp://technet.microsoft.com/en-us/library/ms186775.aspxhttp://technet.microsoft.com/en-us/library/ms186775.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    41/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.onmodelcreating.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbmodelbuilder.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.manytomanycascadedeleteconvention(v=vs.103).aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventions.onetomanycascadedeleteconvention(v=vs.103).aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    42/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    43/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    44/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    45/122

    http://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19dhttp://visualstudiogallery.msdn.microsoft.com/da740968-02f9-42a9-9ee4-1a9a06d896a2
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    46/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    47/122

    http://msdn.microsoft.com/en-us/library/gg696588.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    48/122

    http://msdn.microsoft.com/en-us/library/gg679604.aspxhttp://msdn.microsoft.com/en-us/library/gg679506.aspxhttp://msdn.microsoft.com/en-us/library/gg679221.aspxhttp://msdn.microsoft.com/en-us/library/gg696323.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.database.createifnotexists.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.database.create.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    49/122

    http://msdn.microsoft.com/en-us/library/hh829293.aspxhttp://msdn.microsoft.com/en-us/library/gg679604.aspxhttp://msdn.microsoft.com/en-us/library/hh829293.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    50/122

    http://msdn.microsoft.com/en-us/library/gg679461.aspxhttp://msdn.microsoft.com/en-us/library/gg696632.aspxhttp://msdn.microsoft.com/en-us/library/gg696323.aspxhttp://msdn.microsoft.com/en-us/library/gg696323.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    51/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    52/122

    http://msdn.microsoft.com/en-us/library/hh829293.aspxhttp://msdn.microsoft.com/en-us/library/hh829293.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    53/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigrationsconfiguration.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    54/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.migrations.infrastructure.automaticdatalossexception.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    55/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigration(v=vs.103).aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigrationsconfiguration.automaticmigrationsenabled.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigrationsconfiguration.automaticmigrationdatalossallowed.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    56/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigration.sql.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigration(v=vs.103).aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigration.down.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigration.up.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigration.up.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigration.down.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.migrations.dbmigration.up.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    57/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    58/122

    http://msdn.microsoft.com/en-us/library/bb351562.aspxhttp://msdn.microsoft.com/en-us/library/gg696460.aspxhttp://msdn.microsoft.com/en-us/library/gg696418.aspxhttp://msdn.microsoft.com/en-us/library/gg696418.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    59/122

    http://msdn.microsoft.com/en-us/library/bb504095.aspxhttp://msdn.microsoft.com/en-us/library/bb354927.aspxhttp://msdn.microsoft.com/en-us/library/bb301896.aspxhttp://msdn.microsoft.com/en-us/library/bb348657.aspxhttp://msdn.microsoft.com/en-us/library/bb359429.aspxhttp://msdn.microsoft.com/en-us/library/bb156472.aspxhttp://msdn.microsoft.com/en-us/library/bb337729.aspxhttp://msdn.microsoft.com/en-us/library/bb468851.aspxhttp://msdn.microsoft.com/en-us/library/bb534338.aspxhttp://msdn.microsoft.com/en-us/library/bb548657.aspxhttp://msdn.microsoft.com/en-us/library/bb298736.aspxhttp://msdn.microsoft.com/en-us/library/bb342261.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    60/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    61/122

    http://msdn.microsoft.com/en-us/library/system.data.objects.sqlclient.sqlfunctions.aspxhttp://msdn.microsoft.com/en-us/library/dd412615.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.entityfunctions.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    62/122

    http://msdn.microsoft.com/en-us/library/bb339670.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    63/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    64/122

    http://msdn.microsoft.com/en-us/library/system.data.idatarecord.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    65/122

    http://entityframework.codeplex.com/workitem/118http://msdn.microsoft.com/en-us/library/gg696460.aspxhttp://msdn.microsoft.com/en-us/library/gg696332.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    66/122

    http://msdn.microsoft.com/en-us/library/system.data.common.dbconnection.aspxhttp://msdn.microsoft.com/en-us/library/gg679456.aspxhttp://msdn.microsoft.com/en-us/library/gg696332.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    67/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    68/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    69/122

    http://msdn.microsoft.com/en-us/library/system.objectdisposedexception.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbcontextconfiguration.proxycreationenabled.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbcontextconfiguration.lazyloadingenabled.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    70/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    71/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.dbextensions.include.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbextensions.include.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    72/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    73/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    74/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.changetracker.aspxhttp://msdn.microsoft.com/en-us/library/ms653375.aspxhttp://msdn.microsoft.com/en-us/library/ms668604.aspxhttp://msdn.microsoft.com/en-us/library/gg696248.aspxhttp://msdn.microsoft.com/en-us/library/gg696460.aspxhttp://msdn.microsoft.com/en-us/library/gg696248.aspxhttp://martinfowler.com/eaaCatalog/identityMap.html
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    75/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    76/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspxhttp://martinfowler.com/eaaCatalog/unitOfWork.htmlhttp://msdn.microsoft.com/en-us/library/gg696460.aspxhttp://msdn.microsoft.com/en-us/library/gg696460.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    77/122

    http://msdn.microsoft.com/en-us/library/gg696460.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.migrations.idbsetextensions.addorupdate.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    78/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.changetracker.aspxhttp://msdn.microsoft.com/en-us/library/gg696410.aspxhttp://msdn.microsoft.com/en-us/library/gg696578.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    79/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    80/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    81/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbupdateconcurrencyexception.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    82/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.concurrencycheckattribute.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    83/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.concurrencycheckattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.timestampattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.timestampattribute.aspxhttp://technet.microsoft.com/en-us/library/ms182776.aspxhttp://technet.microsoft.com/en-us/library/ms182776.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    84/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbvalidationerror.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbentityvalidationresult.validationerrors.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbentityvalidationresult.validationerrors.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbentityvalidationresult.isvalid.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbentityvalidationresult.entry.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbentityvalidationresult.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.getvalidationerrors.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbcontextconfiguration.validateonsaveenabled.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    85/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.maxlengthattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.customvalidationattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.compareattribute.aspxhttp://msdn.microsoft.com/en-us/library/dd730022.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.validationattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbentityvalidationresult.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbentityvalidationexception.entityvalidationerrors.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbentityvalidationexception.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbvalidationerror.propertyname.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbvalidationerror.errormessage.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    86/122

    http://msdn.microsoft.com/en-us/library/system.web.security.membershippasswordattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.stringlengthattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.requiredattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.regularexpressionattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.rangeattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.minlengthattribute.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    87/122

    http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.customvalidationattribute.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    88/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbvalidationerror.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.validation.dbentityvalidationresult.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.validationresult.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.ivalidatableobject.aspxhttp://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.ivalidatableobject.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    89/122

    http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    90/122

    http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.complete.aspxhttp://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.dispose.aspxhttp://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspxhttp://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.complete.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    91/122

    http://msdn.microsoft.com/en-us/library/system.data.spatial.dbgeometry.aspxhttp://msdn.microsoft.com/en-us/library/system.data.spatial.dbgeography.aspxhttp://msdn.microsoft.com/en-us/data/dn194325.aspxhttp://technet.microsoft.com/en-us/library/cc280766.aspxhttp://technet.microsoft.com/en-us/library/cc280487.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    92/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    93/122

    http://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.savingchanges.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.objectmaterialized.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    94/122

    http://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.savingchanges.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.objectmaterialized.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    95/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    96/122

    http://technet.microsoft.com/en-us/library/ms186775.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    97/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    98/122

    http://msdn.microsoft.com/en-us/library/system.data.objects.dataclasses.edmfunctionattribute.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.dataclasses.edmfunctionattribute.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    99/122

    http://technet.microsoft.com/en-us/library/ms187922.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.entityfunctions.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.sqlclient.sqlfunctions.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    100/122

    http://msdn.microsoft.com/en-us/library/bb351562.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    101/122

    http://msdn.microsoft.com/en-us/library/cc646746.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectcontext.aspxhttp://msdn.microsoft.com/en-us/library/cc646779.aspxhttp://www.odata.org/http://msdn.microsoft.com/en-us/library/cc668792.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    102/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    103/122

    http://www.asp.net/web-apihttp://www.odata.org/documentation/odata-v3-documentation/url-conventions/http://www.odata.org/documentation/odata-v3-documentation/url-conventions/
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    104/122

    http://msdn.microsoft.com/en-us/library/cc488545.aspxhttp://www.asp.net/web-api
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    105/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    106/122

    http://msdn.microsoft.com/en-us/library/cc488545.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    107/122

    http://msdn.microsoft.com/en-us/library/system.data.objects.objectquery.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectquery.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectquery.totracestring.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    108/122

    http://www.nuget.org/packages/MiniProfiler.EF/http://www.nuget.org/packages/MiniProfiler.MVC3/http://www.nuget.org/packages/MiniProfiler/http://miniprofiler.com/http://msdn.microsoft.com/en-us/library/system.data.objects.objectquery.aspxhttp://msdn.microsoft.com/en-us/library/gg696530.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectquery.aspxhttp://msdn.microsoft.com/en-us/library/bb351562.aspxhttp://msdn.microsoft.com/en-us/library/system.data.objects.objectquery.totracestring.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    109/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    110/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    111/122

    http://technet.microsoft.com/en-us/library/ms181091.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    112/122

    http://msdn.microsoft.com/en-us/library/gg679352.aspxhttp://msdn.microsoft.com/en-us/library/9eekhta0.aspxhttp://msdn.microsoft.com/en-us/library/bb548657.aspxhttp://msdn.microsoft.com/en-us/library/bb298736.aspxhttp://msdn.microsoft.com/en-us/library/bb342261.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    113/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.dbextensions.include.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbchangetracker.detectchanges.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbcontextconfiguration.autodetectchangesenabled.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbchangetracker.detectchanges.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    114/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbcontextconfiguration.validateonsaveenabled.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    115/122

    http://technet.microsoft.com/en-us/library/ms186775.aspxhttp://technet.microsoft.com/en-us/library/ms186775.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    116/122

    http://msdn.microsoft.com/en-us/library/gg679456.aspxhttp://msdn.microsoft.com/en-us/library/gg696332.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    117/122

    http://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.savechanges.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbcontextconfiguration.proxycreationenabled.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.infrastructure.dbcontextconfiguration.lazyloadingenabled.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    118/122

    http://technet.microsoft.com/en-us/library/ms186775.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    119/122

  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    120/122

    http://msdn.microsoft.com/en-us/data/dd363565.aspxhttp://technet.microsoft.com/en-us/library/ms182776.aspxhttp://technet.microsoft.com/en-us/library/ms182776.aspxhttp://msdn.microsoft.com/en-us/library/system.data.spatial.dbgeography.aspxhttp://msdn.microsoft.com/en-us/library/system.data.spatial.dbgeometry.aspxhttp://technet.microsoft.com/en-us/library/ms177634.aspxhttp://technet.microsoft.com/en-us/library/ms177634.aspxhttp://technet.microsoft.com/en-us/library/ms186775.aspxhttp://technet.microsoft.com/en-us/library/ms186775.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    121/122

    http://technet.microsoft.com/en-us/library/ms181091.aspxhttp://www.nuget.org/packages/MiniProfiler.MVC3/http://www.nuget.org/packages/MiniProfiler.EF/http://www.nuget.org/packages/MiniProfilerhttp://www.nuget.org/packages/EntityFrameworkhttp://miniprofiler.com/http://msdn.microsoft.com/en-us/library/bb738573.aspxhttp://msdn.microsoft.com/en-us/library/bb738573.aspxhttp://msdn.microsoft.com/en-us/library/bb399560.aspxhttp://msdn.microsoft.com/en-us/data/dn194325.aspxhttp://msdn.microsoft.com/en-us/data/dn194325.aspxhttp://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19dhttp://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19dhttp://msdn.microsoft.com/en-us/data/jj592904.aspxhttp://msdn.microsoft.com/en-us/data/jj592904.aspxhttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventionshttp://msdn.microsoft.com/en-us/library/system.data.entity.modelconfiguration.conventionshttps://entityframework.codeplex.com/http://data.uservoice.com/forums/72025-ado-net-entity-framework-ef-feature-suggestionshttp://data.uservoice.com/forums/72025-ado-net-entity-framework-ef-feature-suggestionshttp://msdn.microsoft.com/en-us/data/jj591621.aspxhttp://msdn.microsoft.com/en-us/data/jj554735.aspxhttp://msdn.microsoft.com/en-us/data/jj554735.aspxhttp://msdn.microsoft.com/en-us/library/ee845452.aspxhttp://msdn.microsoft.com/en-us/data/dd363565.aspx
  • 8/9/2019 Entity_Framework_Code_First_Succinctly.pdf

    122/122