Moved metadata to end of class properties definition.

pull/1/head
Basimodo 2021-06-27 13:07:38 +07:00
parent 3699d9aacf
commit 1a4e62ea6d
6 changed files with 54 additions and 75 deletions

@ -14,20 +14,7 @@ namespace Gremlin.GremlinData.EntityClasses
public int? ParentAccountId { get; set; }
public AccountType AccountType { get; set; }
public SubMarket SubMarket { get; set; }
//public int AddressId { get; set; }
//public ICollection<string> MarketsServed { get; set; }
//public ICollection<CommunicationChannel> CommunicationChannels { get; set; }
//standard properties:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
public DateTime DataValidUntil { get; set; }
public string DataModificationByUser { get; set; }
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
//class properties:
public string AccountName { get; set; }
public string Notes { get; set; }
@ -43,20 +30,24 @@ namespace Gremlin.GremlinData.EntityClasses
public string EMail { get; set; }
//Agilent-specific Properties:
//public string AccountTypeCode { get; set; } //enum
//public string AccountSubMarketCode { get; set; } //enum
public uint SAPAccountNumber { get; set; }
public DateTime AccountCreatedInSAPOn { get; set; }
//metadata:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
public DateTime DataValidUntil { get; set; }
public string DataModificationByUser { get; set; }
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
//IBase
//tbd
public Account()
{
//AccountType = new AccountType();
//SubMarket = new SubMarket();
//Contacts = new List<Contact>();
}
//public bool Equals(Account other)

@ -14,8 +14,10 @@ namespace Gremlin.GremlinData.EntityClasses
//navigation properties:
public IList<Account> Accounts { get; set; }
//standard properties:
//Ist das hier bei einer de-facto-Enumeration wirklich nötig?
//class properties:
public string AccountTypeDescription { get; set; }
//metadata:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
@ -24,8 +26,5 @@ namespace Gremlin.GremlinData.EntityClasses
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
//class properties:
public string AccountTypeDescription { get; set; }
}
}

@ -9,31 +9,14 @@ namespace Gremlin.GremlinData.EntityClasses
//foreign keys:
public uint AccountId { get; set; }
//public uint QuoteId { get; set; }
//navigation properties:
public Account Account { get; set; }
//public IList<Quote> Quotes { get; set; }
//standard properties:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
public DateTime DataValidUntil { get; set; }
public string DataModificationByUser { get; set; }
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
//class properties:
public string AcademicTitle { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
/// <summary>
/// enum Gender
///
/// 0 = unknown, 1 = male, 2 = female, 3 = divers
/// </summary>
public byte Gender { get; set; }
public bool? OptInStatus { get; set; }
public string Department { get; set; }
@ -49,8 +32,7 @@ namespace Gremlin.GremlinData.EntityClasses
public bool EmailBounced { get; set; }
public bool NoHardcopyMailing { get; set; }
public bool ValidatedContact { get; set; }
//public ICollection<CommunicationChannel> CommunicationChannels { get; set; }
//Agilent-specific Properties:
public int SAPContactNumber { get; set; }
public DateTime SAPContactCreationDate { get; set; }
@ -62,9 +44,18 @@ namespace Gremlin.GremlinData.EntityClasses
public string SAPCompetitiveIBase { get; set; }
public string LinkToSAP { get; set; }
//metadata:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
public DateTime DataValidUntil { get; set; }
public string DataModificationByUser { get; set; }
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
public Contact()
{
//Account = DbHelper.ResolveAccountById(new GremlinContext(), AccountId);
}
}
}

@ -7,8 +7,7 @@ namespace Gremlin.GremlinData.EntityClasses
{
//primary key:
public uint CustomDescriptionId { get; set; }
//use composite key PN + Opt instead?
//foreign keys:
public uint ProductId { get; set; }
public uint AccountId { get; set; }
@ -17,16 +16,6 @@ namespace Gremlin.GremlinData.EntityClasses
public List<Product> Products { get; set; }
public Account Supplier { get; set; }
//standard properties:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
public DateTime DataValidUntil { get; set; }
public string DataModificationByUser { get; set; }
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
//class properties:
public string ProductNumber { get; set; }
public string OptionNumber { get; set; }
@ -38,12 +27,19 @@ namespace Gremlin.GremlinData.EntityClasses
//Agilent-Specific properties:
//NONE
//metadata:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
public DateTime DataValidUntil { get; set; }
public string DataModificationByUser { get; set; }
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
//Constructors
public CustomDescription()
{
//Product = new Product();
//Supplier = new Account();
}
}
}

@ -7,21 +7,15 @@ namespace Gremlin.GremlinData.EntityClasses
//primary key:
public uint ProductId { get; set; }
//standard properties:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
public DateTime DataValidUntil { get; set; }
public string DataModificationByUser { get; set; }
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
//navigation properties:
public CustomDescription CustomDescription { get; set; }
public ProductLine ProductLine { get; set; }
//class properties = Agilent-specific properties:
//foreign keys
public int CustomDescriptionId { get; set; }
public string ProductLineCode { get; set; }
//Agilent-specific properties:
public string ProductNumber { get; set; }
public string OptionNumber { get; set; }
public string SapShortDescription { get; set; }
@ -34,11 +28,20 @@ namespace Gremlin.GremlinData.EntityClasses
public int BreakRangeFrom { get; set; }
public int BreakRangeTo { get; set; }
//metadata:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
public DateTime DataValidUntil { get; set; }
public string DataModificationByUser { get; set; }
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
//Constructors
public Product()
{
//ProductLine = new ProductLine();
}
}

@ -14,8 +14,10 @@ namespace Gremlin.GremlinData.EntityClasses
//navigation properties:
public List<Product> Products { get; set; }
//standard properties:
//Ist das hier bei einer de-facto-Enumeration wirklich nötig?
//class properties:
public string ProductLineDescription { get; set; }
//metadata:
public DateTime DataCreationDate { get; set; }
public DateTime DataModificationDate { get; set; }
public DateTime DataValidFrom { get; set; }
@ -24,8 +26,5 @@ namespace Gremlin.GremlinData.EntityClasses
public uint DataVersionNumber { get; set; }
public string DataVersionComment { get; set; }
public string DataStatus { get; set; }
//class properties:
public string ProductLineDescription { get; set; }
}
}