Skip to content

Instantly share code, notes, and snippets.

@ssougnez
Last active July 14, 2018 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssougnez/37161835201bba7a627e71ff4aa92a66 to your computer and use it in GitHub Desktop.
Save ssougnez/37161835201bba7a627e71ff4aa92a66 to your computer and use it in GitHub Desktop.
[TableName("Actors")]
[PrimaryKey("Id", autoIncrement = true)]
[ExplicitColumns]
public class Actor
{
[Column("Id")]
[PrimaryKeyColumn(AutoIncrement = true)]
public int Id { get; set; }
[Column("FirstName")]
public string FirstName { get; set; }
[Column("LastName")]
public string LastName { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment