Пример #1
0
        internal static Source FetchSource(SourceData data)
        {
            var result = new Source();

            result.Fetch(data);
            result.MarkOld();

            return result;
        }
Пример #2
0
 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;
 }
Пример #3
0
        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);
            }
        }
Пример #4
0
 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;
 }
Пример #5
0
 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;
 }
Пример #6
0
 protected void Insert(SourceData data)
 {
     this.Update(data);
 }