Created
July 31, 2016 02:32
-
-
Save PaulDuffy3/330809cbf7f1316081f50ba173a088de to your computer and use it in GitHub Desktop.
NPOCO - Address Class for ASP.NET Core 1
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using NPoco; | |
namespace NPOCOTestProject.Models | |
{ | |
[TableName("ADDR_Address")] | |
[PrimaryKey("ADDR_ID")] | |
public class Address | |
{ | |
public int ADDR_ID { get; set; } | |
public int ADDR_FK_USER_ID { get; set; } | |
public string ADDR_AddressType { get; set; } | |
public string ADDR_StreetAddress { get; set; } | |
public string ADDR_City { get; set; } | |
public Int16 ADDR_FK_STTE_ID { get; set; } | |
public string ADDR_PostalCode { get; set; } | |
[Ignore] | |
internal bool IsNew | |
{ | |
get | |
{ | |
return this.ADDR_ID == default(int); | |
} | |
} | |
[Ignore] | |
public bool IsDeleted { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment