public static Business.Account.AppAccess Create(QnSProjectAward.Contracts.Business.Account.IAppAccess other) { BeforeCreate(other); var result = new Business.Account.AppAccess(); result.CopyProperties(other); AfterCreate(result, other); return(result); }
public void CopyProperties(QnSProjectAward.Contracts.Business.Account.IAppAccess other) { if (other == null) { throw new System.ArgumentNullException(nameof(other)); } bool handled = false; BeforeCopyProperties(other, ref handled); if (handled == false) { Id = other.Id; OneItem.CopyProperties(other.OneItem); ClearManyItems(); foreach (var item in other.ManyItems) { AddManyItem(item); } } AfterCopyProperties(other); }
static partial void AfterCreate(Business.Account.AppAccess instance, QnSProjectAward.Contracts.Business.Account.IAppAccess other);
static partial void BeforeCreate(QnSProjectAward.Contracts.Business.Account.IAppAccess other);
partial void AfterCopyProperties(QnSProjectAward.Contracts.Business.Account.IAppAccess other);
partial void BeforeCopyProperties(QnSProjectAward.Contracts.Business.Account.IAppAccess other, ref bool handled);