Created
January 6, 2018 21:32
-
-
Save cilerler/e75fc552f65108b85c362105d1df3e5e to your computer and use it in GitHub Desktop.
Models
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class BaseEntity | |
{ | |
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] | |
public long Id { get; set; } | |
//x [Required] | |
//x [DatabaseGenerated(DatabaseGeneratedOption.Computed)] | |
//!++ Do not uncomment below https://github.com/OData/RESTier/issues/491 | |
//x [Timestamp] //ROWVERSION | |
//x public byte[] UpdateVersion { get; set; } | |
//UNIQUEIDENTIFIER ROWGUIDCOL | |
[Required] | |
//!++ Do not uncomment below https://github.com/OData/RESTier/issues/491 | |
//x [ConcurrencyCheck] | |
[DatabaseGenerated(DatabaseGeneratedOption.Computed)] | |
public Guid RowGuid { set; get; } | |
[Required] | |
[DataType(DataType.DateTime)] | |
[DatabaseGenerated(DatabaseGeneratedOption.Computed)] | |
public DateTime Inserted { get; set; } | |
[Required] | |
[DataType(DataType.DateTime)] | |
[DatabaseGenerated(DatabaseGeneratedOption.Computed)] | |
public DateTime LastUpdated { get; set; } | |
[Required] | |
[DatabaseGenerated(DatabaseGeneratedOption.Computed)] | |
public bool Status { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment