/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IMMSenderType source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.TypNameId = source.TypNameId; this.Player = source.Player; this.PLeft = source.PLeft; this.PTop = source.PTop; this.PWidth = source.PWidth; this.PHeight = source.PHeight; this.PStyle = source.PStyle; this.Button = source.Button; this.ILeft = source.ILeft; this.ITop = source.ITop; this.IWidth = source.IWidth; this.IHeight = source.IHeight; this.IStyle = source.IStyle; this.Banner = source.Banner; this.BTop = source.BTop; this.BLeft = source.BLeft; this.BWidth = source.BWidth; this.BHeight = source.BHeight; this.BStyle = source.BStyle; this.FahrPlan = source.FahrPlan; this.FTop = source.FTop; this.FLeft = source.FLeft; this.FWidth = source.FWidth; this.FHeight = source.FHeight; this.FStyle = source.FStyle; this.NewsTicker = source.NewsTicker; this.NTop = source.NTop; this.NLeft = source.NLeft; this.NWidth = source.NWidth; this.NHeight = source.NHeight; this.NStyle = source.NStyle; this.Web = source.Web; this.WTop = source.WTop; this.WLeft = source.WLeft; this.WWidth = source.WWidth; this.WHeight = source.WHeight; this.WStyle = source.WStyle; 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(IMMSenderType source, params string[] includedColumns) { if (includedColumns.Contains(MMSenderTypesTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(MMSenderTypesTable.TypNameIdCol)) this.TypNameId = source.TypNameId; if (includedColumns.Contains(MMSenderTypesTable.PlayerCol)) this.Player = source.Player; if (includedColumns.Contains(MMSenderTypesTable.PLeftCol)) this.PLeft = source.PLeft; if (includedColumns.Contains(MMSenderTypesTable.PTopCol)) this.PTop = source.PTop; if (includedColumns.Contains(MMSenderTypesTable.PWidthCol)) this.PWidth = source.PWidth; if (includedColumns.Contains(MMSenderTypesTable.PHeightCol)) this.PHeight = source.PHeight; if (includedColumns.Contains(MMSenderTypesTable.PStyleCol)) this.PStyle = source.PStyle; if (includedColumns.Contains(MMSenderTypesTable.ButtonCol)) this.Button = source.Button; if (includedColumns.Contains(MMSenderTypesTable.ILeftCol)) this.ILeft = source.ILeft; if (includedColumns.Contains(MMSenderTypesTable.ITopCol)) this.ITop = source.ITop; if (includedColumns.Contains(MMSenderTypesTable.IWidthCol)) this.IWidth = source.IWidth; if (includedColumns.Contains(MMSenderTypesTable.IHeightCol)) this.IHeight = source.IHeight; if (includedColumns.Contains(MMSenderTypesTable.IStyleCol)) this.IStyle = source.IStyle; if (includedColumns.Contains(MMSenderTypesTable.BannerCol)) this.Banner = source.Banner; if (includedColumns.Contains(MMSenderTypesTable.BTopCol)) this.BTop = source.BTop; if (includedColumns.Contains(MMSenderTypesTable.BLeftCol)) this.BLeft = source.BLeft; if (includedColumns.Contains(MMSenderTypesTable.BWidthCol)) this.BWidth = source.BWidth; if (includedColumns.Contains(MMSenderTypesTable.BHeightCol)) this.BHeight = source.BHeight; if (includedColumns.Contains(MMSenderTypesTable.BStyleCol)) this.BStyle = source.BStyle; if (includedColumns.Contains(MMSenderTypesTable.FahrPlanCol)) this.FahrPlan = source.FahrPlan; if (includedColumns.Contains(MMSenderTypesTable.FTopCol)) this.FTop = source.FTop; if (includedColumns.Contains(MMSenderTypesTable.FLeftCol)) this.FLeft = source.FLeft; if (includedColumns.Contains(MMSenderTypesTable.FWidthCol)) this.FWidth = source.FWidth; if (includedColumns.Contains(MMSenderTypesTable.FHeightCol)) this.FHeight = source.FHeight; if (includedColumns.Contains(MMSenderTypesTable.FStyleCol)) this.FStyle = source.FStyle; if (includedColumns.Contains(MMSenderTypesTable.NewsTickerCol)) this.NewsTicker = source.NewsTicker; if (includedColumns.Contains(MMSenderTypesTable.NTopCol)) this.NTop = source.NTop; if (includedColumns.Contains(MMSenderTypesTable.NLeftCol)) this.NLeft = source.NLeft; if (includedColumns.Contains(MMSenderTypesTable.NWidthCol)) this.NWidth = source.NWidth; if (includedColumns.Contains(MMSenderTypesTable.NHeightCol)) this.NHeight = source.NHeight; if (includedColumns.Contains(MMSenderTypesTable.NStyleCol)) this.NStyle = source.NStyle; if (includedColumns.Contains(MMSenderTypesTable.WebCol)) this.Web = source.Web; if (includedColumns.Contains(MMSenderTypesTable.WTopCol)) this.WTop = source.WTop; if (includedColumns.Contains(MMSenderTypesTable.WLeftCol)) this.WLeft = source.WLeft; if (includedColumns.Contains(MMSenderTypesTable.WWidthCol)) this.WWidth = source.WWidth; if (includedColumns.Contains(MMSenderTypesTable.WHeightCol)) this.WHeight = source.WHeight; if (includedColumns.Contains(MMSenderTypesTable.WStyleCol)) this.WStyle = source.WStyle; if (includedColumns.Contains(MMSenderTypesTable.LastUpdateTokenCol)) this.LastUpdateToken = source.LastUpdateToken; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IMMSenderType target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.TypNameId = this.TypNameId; target.Player = this.Player; target.PLeft = this.PLeft; target.PTop = this.PTop; target.PWidth = this.PWidth; target.PHeight = this.PHeight; target.PStyle = this.PStyle; target.Button = this.Button; target.ILeft = this.ILeft; target.ITop = this.ITop; target.IWidth = this.IWidth; target.IHeight = this.IHeight; target.IStyle = this.IStyle; target.Banner = this.Banner; target.BTop = this.BTop; target.BLeft = this.BLeft; target.BWidth = this.BWidth; target.BHeight = this.BHeight; target.BStyle = this.BStyle; target.FahrPlan = this.FahrPlan; target.FTop = this.FTop; target.FLeft = this.FLeft; target.FWidth = this.FWidth; target.FHeight = this.FHeight; target.FStyle = this.FStyle; target.NewsTicker = this.NewsTicker; target.NTop = this.NTop; target.NLeft = this.NLeft; target.NWidth = this.NWidth; target.NHeight = this.NHeight; target.NStyle = this.NStyle; target.Web = this.Web; target.WTop = this.WTop; target.WLeft = this.WLeft; target.WWidth = this.WWidth; target.WHeight = this.WHeight; target.WStyle = this.WStyle; target.LastUpdateToken = this.LastUpdateToken; }