/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMaterialTyp source, bool includePrimaryKey = false) { if (includePrimaryKey) this.TechnicalTyp = source.TechnicalTyp; this.BeitragsTyp = source.BeitragsTyp; this.TechnicalDescription = source.TechnicalDescription; this.ReadableDescription = source.ReadableDescription; this.TVPlayAbleCode = source.TVPlayAbleCode; this.ShowInInternetOrder = source.ShowInInternetOrder; this.StorageFormat = source.StorageFormat; this.FinalizingIndicator = source.FinalizingIndicator; this.ShowControlFileContentInProgrammPreview = source.ShowControlFileContentInProgrammPreview; }
/// <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(IMaterialTyp source, params string[] includedColumns) { if (includedColumns.Contains(MaterialTypenTable.TechnicalTypCol)) this.TechnicalTyp = source.TechnicalTyp; if (includedColumns.Contains(MaterialTypenTable.BeitragsTypCol)) this.BeitragsTyp = source.BeitragsTyp; if (includedColumns.Contains(MaterialTypenTable.TechnicalDescriptionCol)) this.TechnicalDescription = source.TechnicalDescription; if (includedColumns.Contains(MaterialTypenTable.ReadableDescriptionCol)) this.ReadableDescription = source.ReadableDescription; if (includedColumns.Contains(MaterialTypenTable.TVPlayAbleCodeCol)) this.TVPlayAbleCode = source.TVPlayAbleCode; if (includedColumns.Contains(MaterialTypenTable.ShowInInternetOrderCol)) this.ShowInInternetOrder = source.ShowInInternetOrder; if (includedColumns.Contains(MaterialTypenTable.StorageFormatCol)) this.StorageFormat = source.StorageFormat; if (includedColumns.Contains(MaterialTypenTable.FinalizingIndicatorCol)) this.FinalizingIndicator = source.FinalizingIndicator; if (includedColumns.Contains(MaterialTypenTable.ShowControlFileContentInProgrammPreviewCol)) this.ShowControlFileContentInProgrammPreview = source.ShowControlFileContentInProgrammPreview; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMaterialTyp target, bool includePrimaryKey = false) { if (includePrimaryKey) target.TechnicalTyp = this.TechnicalTyp; target.BeitragsTyp = this.BeitragsTyp; target.TechnicalDescription = this.TechnicalDescription; target.ReadableDescription = this.ReadableDescription; target.TVPlayAbleCode = this.TVPlayAbleCode; target.ShowInInternetOrder = this.ShowInInternetOrder; target.StorageFormat = this.StorageFormat; target.FinalizingIndicator = this.FinalizingIndicator; target.ShowControlFileContentInProgrammPreview = this.ShowControlFileContentInProgrammPreview; }