Created
March 19, 2017 21:06
-
-
Save dsibinski/a1d1ca6c5380e0acc5c439f3060da9cc to your computer and use it in GitHub Desktop.
This file contains hidden or 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
namespace MoneyBack.Entities | |
{ | |
[Table("People")] | |
public class Person | |
{ | |
[PrimaryKey, AutoIncrement] | |
public int Id { get; set; } | |
public string Name { get; set; } | |
public string LastName { get; set; } | |
public string PhoneNumber { get; set; } | |
public string Email { get; set; } | |
public override string ToString() | |
{ | |
return $"[Person: Id={Id}, Name={Name}, LastName={LastName}, PhoneNumber={PhoneNumber}, Email={Email}]"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment