/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IUseForRootDataTemplate source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.RootDataTemplatesId = source.RootDataTemplatesId; this.DataDependencyId = source.DataDependencyId; this.ModifyTimeStamp = source.ModifyTimeStamp; this.ProcessingStatus = source.ProcessingStatus; this.CreatedBy = source.CreatedBy; this.LastModifiedBy = source.LastModifiedBy; this.AccessRightsId = source.AccessRightsId; this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> /// This method copy's each database field which is in the <paramref name="includedColumns"/> /// from the <paramref name="source"/> interface to this data row. /// </summary> public void Copy_From_But_TakeOnly(IUseForRootDataTemplate source, params string[] includedColumns) { if (includedColumns.Contains(UseForRootDataTemplatesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(UseForRootDataTemplatesTable.RootDataTemplatesIdCol)) this.RootDataTemplatesId = source.RootDataTemplatesId; if (includedColumns.Contains(UseForRootDataTemplatesTable.DataDependencyIdCol)) this.DataDependencyId = source.DataDependencyId; if (includedColumns.Contains(UseForRootDataTemplatesTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp; if (includedColumns.Contains(UseForRootDataTemplatesTable.ProcessingStatusCol)) this.ProcessingStatus = source.ProcessingStatus; if (includedColumns.Contains(UseForRootDataTemplatesTable.CreatedByCol)) this.CreatedBy = source.CreatedBy; if (includedColumns.Contains(UseForRootDataTemplatesTable.LastModifiedByCol)) this.LastModifiedBy = source.LastModifiedBy; if (includedColumns.Contains(UseForRootDataTemplatesTable.AccessRightsIdCol)) this.AccessRightsId = source.AccessRightsId; if (includedColumns.Contains(UseForRootDataTemplatesTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IUseForRootDataTemplate target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.RootDataTemplatesId = this.RootDataTemplatesId; target.DataDependencyId = this.DataDependencyId; target.ModifyTimeStamp = this.ModifyTimeStamp; target.ProcessingStatus = this.ProcessingStatus; target.CreatedBy = this.CreatedBy; target.LastModifiedBy = this.LastModifiedBy; target.AccessRightsId = this.AccessRightsId; target.LastUpdateToken = this.LastUpdateToken; }