Skip to content

Instantly share code, notes, and snippets.

@ssougnez
Last active July 14, 2018 14:06
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/b62278c32cfd30199d2a6398553c9faf to your computer and use it in GitHub Desktop.
Save ssougnez/b62278c32cfd30199d2a6398553c9faf to your computer and use it in GitHub Desktop.
[TableName("Directors")]
[PrimaryKey("Id", autoIncrement = true)]
[ExplicitColumns]
public class Director
{
[Column("Id")]
[PrimaryKeyColumn(AutoIncrement = true)]
public int Id { get; set; }
[Column("FirstName")]
public string FirstName { get; set; }
[Column("LastName")]
public string LastName { get; set; }
[Column("Biography")]
[SpecialDbType(SpecialDbTypes.NTEXT)]
[NullSetting(NullSetting = NullSettings.Null)]
public string Biography { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment