Skip to content

Instantly share code, notes, and snippets.

@PaulDuffy3
Created July 31, 2016 02:32
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 PaulDuffy3/330809cbf7f1316081f50ba173a088de to your computer and use it in GitHub Desktop.
Save PaulDuffy3/330809cbf7f1316081f50ba173a088de to your computer and use it in GitHub Desktop.
NPOCO - Address Class for ASP.NET Core 1
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