Entity Code First Identity Key


Snippet Details

Shortcut
epk
Description
Creates an identity key column for a DbContext Class
Language
csharp
Author
JGB
Upload on
3/5/2014 8:35:31 PM
Downloads
653

Declarations

ID ToolTip Default
columnName The name of the column. key

Code Output

        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int $columnName$ { get; set; }
	
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages