Skip to content

Instantly share code, notes, and snippets.

@Fodsuk
Created February 20, 2018 13:09
Show Gist options
  • Save Fodsuk/a5d314ead821f66a82a6db3ac71e2c42 to your computer and use it in GitHub Desktop.
Save Fodsuk/a5d314ead821f66a82a6db3ac71e2c42 to your computer and use it in GitHub Desktop.
public class MyModel {
public string Prop1 { get; set; }
public string Prop2 { get; set; }
[DataType.Date]
public string Prop3 { get; set; }
}
//when there isn't an attribute, you default to String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment