public override void Patch(MemberDataEntity entity) { base.Patch(entity); var target = (CompanyMemberDataEntity)entity; target.Title = Title; target.IsActive = IsActive; }
public override void Patch(MemberDataEntity target) { base.Patch(target); if (target is BotContactEntity botContactEntity) { botContactEntity.BotUserName = BotUserName; } }
public override void Patch(MemberDataEntity memberDataEntity) { base.Patch(memberDataEntity); var target = memberDataEntity as Contact2DataEntity; if (target != null) { target.JobTitle = JobTitle; } }
public override void Patch(MemberDataEntity member) { var target = member as DepartmentDataEntity; if (target != null) { target.ParentId = this.ParentId; } base.Patch(target); }
public override void Patch(MemberDataEntity memberEntity) { var target = memberEntity as CompanyMemberDataEntity; if (target != null) { target.Title = this.Title; } base.Patch(memberEntity); }
protected override MemberDataEntity TryCreateDataMember(Member member) { MemberDataEntity retVal = null; var contact2 = member as Contact2; if (contact2 != null) { retVal = new Contact2Entity(); } return(retVal); }
protected override MemberDataEntity TryCreateDataMember(Member member) { MemberDataEntity retVal = null; var memberDataEntityType = _knownMemberTypesMap.Where(x => x.Key == member.GetType()).Select(x => x.Value).FirstOrDefault(); if (memberDataEntityType != null) { retVal = Activator.CreateInstance(memberDataEntityType) as MemberDataEntity; } return(retVal); }
/// <summary> /// This method used to apply changes form other member type instance /// </summary> public override void Patch(MemberDataEntity target) { base.Patch(target); var suplierDataEntity = target as SupplierDataEntity; if (suplierDataEntity != null && !this.Reviews.IsNullCollection()) { this.Reviews.Patch(suplierDataEntity.Reviews, (sourceReview, targetReview) => sourceReview.Patch(targetReview)); } }
//Override this method you can construct you customer data model from domain member type instance protected override MemberDataEntity TryCreateDataMember(Member member) { MemberDataEntity retVal = null; var contact2 = member as Contact2; var supplier = member as Supplier; if (contact2 != null) { retVal = new Contact2DataEntity(); } if (supplier != null) { retVal = new SupplierDataEntity(); } return(retVal); }
/// <summary> /// This method used to apply changes form other member type instance /// </summary> public override void Patch(MemberDataEntity target) { base.Patch(target); var supplierDataEntity = target as SupplierDataEntity; if (supplierDataEntity != null) { supplierDataEntity.ContractNumber = ContractNumber; if (!Reviews.IsNullCollection()) { Reviews.Patch(supplierDataEntity.Reviews, (sourceReview, targetReview) => sourceReview.Patch(targetReview)); } } }
public override void Patch(MemberDataEntity target) { base.Patch(target); var vendorExtensionEntity = target as VendorExtensionEntity; }
public override void Patch(MemberDataEntity memberEntity) { base.Patch(memberEntity); }
/// <summary> /// This method used to apply changes form other member type instance /// </summary> public override void Patch(MemberDataEntity target) { base.Patch(target); }