/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IPlayerUsingThisSenderSchema source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.SenderId = source.SenderId; this.PlayerName = source.PlayerName; this.DelaySeconds = source.DelaySeconds; this.NumberOfScreensOnThisPlayer = source.NumberOfScreensOnThisPlayer; this.Win8Key = source.Win8Key; this.Status = source.Status; this.Commands = source.Commands; this.ShrinkPercentage = source.ShrinkPercentage; }
/// <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(IPlayerUsingThisSenderSchema source, params string[] includedColumns) { if (includedColumns.Contains(PlayersUsingThisSenderSchemasTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(PlayersUsingThisSenderSchemasTable.SenderIdCol)) this.SenderId = source.SenderId; if (includedColumns.Contains(PlayersUsingThisSenderSchemasTable.PlayerNameCol)) this.PlayerName = source.PlayerName; if (includedColumns.Contains(PlayersUsingThisSenderSchemasTable.DelaySecondsCol)) this.DelaySeconds = source.DelaySeconds; if (includedColumns.Contains(PlayersUsingThisSenderSchemasTable.NumberOfScreensOnThisPlayerCol)) this.NumberOfScreensOnThisPlayer = source.NumberOfScreensOnThisPlayer; if (includedColumns.Contains(PlayersUsingThisSenderSchemasTable.Win8KeyCol)) this.Win8Key = source.Win8Key; if (includedColumns.Contains(PlayersUsingThisSenderSchemasTable.StatusCol)) this.Status = source.Status; if (includedColumns.Contains(PlayersUsingThisSenderSchemasTable.CommandsCol)) this.Commands = source.Commands; if (includedColumns.Contains(PlayersUsingThisSenderSchemasTable.ShrinkPercentageCol)) this.ShrinkPercentage = source.ShrinkPercentage; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IPlayerUsingThisSenderSchema target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.SenderId = this.SenderId; target.PlayerName = this.PlayerName; target.DelaySeconds = this.DelaySeconds; target.NumberOfScreensOnThisPlayer = this.NumberOfScreensOnThisPlayer; target.Win8Key = this.Win8Key; target.Status = this.Status; target.Commands = this.Commands; target.ShrinkPercentage = this.ShrinkPercentage; }