列舉型別DatabaseGenerationOption易名為DatabaseGeneratedOption

  • 1533
  • 0

列舉型別DatabaseGenerationOption易名為DatabaseGeneratedOption

由MSDN Data Developer Center[1]可知DatabaseGeneratedOption支援的版本是.Net Framework 4.5及其之後的版本。

Version Information
.NET Framework
Supported in: 4.5.2, 4.5.1, 4.5
Portable Class Library
Supported in: Portable Class Library
.NET for Windows Store apps
Supported in: Windows 8

舊版的名稱應該是DatabaseGenerationOption[2]。

[1]DatabaseGeneratedOption Enumeration
http://msdn.microsoft.com/en-us/data/system.componentmodel.dataannotations.schema.databasegeneratedoption(v=vs.71)

[2]Code First DataAnnotations,Julie Lerman,Published: April 2011
http://msdn.microsoft.com/en-us/data/gg193958.aspx
http://thedatafarm.com