internal static Source FetchSource(SourceData data) { var result = new Source(); result.Fetch(data); result.MarkOld(); return result; }
private void Child_Fetch(SourceData data) { this.SourceId = data.SourceId; this.SourceTypeId = data.SourceTypeId; this.Name = data.Name; this.CreatedBy = data.CreatedBy; this.CreatedByName = data.CreatedByUser.Name; this.CreatedDate = data.CreatedDate; this.ModifiedBy = data.ModifiedBy; this.ModifiedByName = data.ModifiedByUser.Name; this.ModifiedDate = data.ModifiedDate; }
protected override void DataPortal_Update() { using (var dalManager = DataFactoryManager.GetManager()) { var dalFactory = dalManager.GetProvider<ISourceDataFactory>(); var data = new SourceData(); using (this.BypassPropertyChecks) { this.ModifiedDate = DateTime.Now; this.Update(data); data = dalFactory.Update(data); } // this.FieldManager.UpdateChildren(data); } }
protected void Fetch(SourceData data) { this.SourceId = data.SourceId; this.SourceTypeId = data.SourceTypeId; this.Name = data.Name; this.CreatedDate = data.CreatedDate; this.ModifiedDate = data.ModifiedDate; }
protected void Update(SourceData data) { data.SourceId = this.SourceId; data.SourceTypeId = this.SourceTypeId; data.Name = this.Name; data.CreatedDate = this.CreatedDate; data.ModifiedDate = this.ModifiedDate; }
protected void Insert(SourceData data) { this.Update(data); }