コード例 #1
0
 private bool FilterParent(Company entity)
 {
     return (entity.Id == this.CompanyId);
 }
コード例 #2
0
 private bool FilterChildren(Company entity)
 {
     return (entity.CompanyId == this.Id);
 }
コード例 #3
0
 private void AttachChildren(Company entity)
 {
     entity.Parent = this;
 }
コード例 #4
0
 private void DetachChildren(Company entity)
 {
     entity.Parent = null;
 }
コード例 #5
0
 /// <summary>
 /// Create a new Company object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="companyId">Initial value of the CompanyId property.</param>
 public static Company CreateCompany(global::System.Int32 id, global::System.String createdBy, global::System.DateTime createdDate, global::System.Int32 companyId)
 {
     Company company = new Company();
     company.Id = id;
     company.CreatedBy = createdBy;
     company.CreatedDate = createdDate;
     company.CompanyId = companyId;
     return company;
 }