public SimuladoBusiness(ISimuladoData repository, IExercicioData exercicioRepository, IBannerData bannerRepository, IProdutoData produtoRepository) { _repository = repository; _exercicioRepository = exercicioRepository; _bannerRepository = bannerRepository; _produtoRepository = produtoRepository; }
/// <summary> This method copy's each database field from the <paramref name="source"/> interface to this data row.</summary> public void Copy_From(IBannerData source, bool includePrimaryKey = false) { if (includePrimaryKey) this.Id = source.Id; this.NameId = source.NameId; this.NumberOfPages = source.NumberOfPages; this.Sender = source.Sender; this.Typ = source.Typ; this.Text = source.Text; this.TextForTheLastSendingDay = source.TextForTheLastSendingDay; this.ShowOnlyList = source.ShowOnlyList; this.ForeColor = source.ForeColor; this.BackColor = source.BackColor; this.LangText = source.LangText; this.FullInfo = source.FullInfo; this.ModifyTimeStamp = source.ModifyTimeStamp; this.ProcessingStatus = source.ProcessingStatus; }
/// <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(IBannerData source, params string[] includedColumns) { if (includedColumns.Contains(BannerDatasTable.IdCol)) this.Id = source.Id; if (includedColumns.Contains(BannerDatasTable.NameIdCol)) this.NameId = source.NameId; if (includedColumns.Contains(BannerDatasTable.NumberOfPagesCol)) this.NumberOfPages = source.NumberOfPages; if (includedColumns.Contains(BannerDatasTable.SenderCol)) this.Sender = source.Sender; if (includedColumns.Contains(BannerDatasTable.TypCol)) this.Typ = source.Typ; if (includedColumns.Contains(BannerDatasTable.TextCol)) this.Text = source.Text; if (includedColumns.Contains(BannerDatasTable.TextForTheLastSendingDayCol)) this.TextForTheLastSendingDay = source.TextForTheLastSendingDay; if (includedColumns.Contains(BannerDatasTable.ShowOnlyListCol)) this.ShowOnlyList = source.ShowOnlyList; if (includedColumns.Contains(BannerDatasTable.ForeColorCol)) this.ForeColor = source.ForeColor; if (includedColumns.Contains(BannerDatasTable.BackColorCol)) this.BackColor = source.BackColor; if (includedColumns.Contains(BannerDatasTable.LangTextCol)) this.LangText = source.LangText; if (includedColumns.Contains(BannerDatasTable.FullInfoCol)) this.FullInfo = source.FullInfo; if (includedColumns.Contains(BannerDatasTable.ModifyTimeStampCol)) this.ModifyTimeStamp = source.ModifyTimeStamp; if (includedColumns.Contains(BannerDatasTable.ProcessingStatusCol)) this.ProcessingStatus = source.ProcessingStatus; }
/// <summary> This method copy's each database field into the <paramref name="target"/> interface. </summary> public void Copy_To(IBannerData target, bool includePrimaryKey = false) { if (includePrimaryKey) target.Id = this.Id; target.NameId = this.NameId; target.NumberOfPages = this.NumberOfPages; target.Sender = this.Sender; target.Typ = this.Typ; target.Text = this.Text; target.TextForTheLastSendingDay = this.TextForTheLastSendingDay; target.ShowOnlyList = this.ShowOnlyList; target.ForeColor = this.ForeColor; target.BackColor = this.BackColor; target.LangText = this.LangText; target.FullInfo = this.FullInfo; target.ModifyTimeStamp = this.ModifyTimeStamp; target.ProcessingStatus = this.ProcessingStatus; }