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
5-3-2014 20:35:31
Downloads
1803

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