コード例 #1
0
ファイル: Filter.Data.cs プロジェクト: mattruma/epiworx-csla
        protected override void DataPortal_Insert()
        {
            using (var dalManager = DataFactoryManager.GetManager())
            {
                var dalFactory = dalManager.GetProvider<IFilterDataFactory>();

                var data = new FilterData();

                using (this.BypassPropertyChecks)
                {
                    this.ModifiedBy = ((IBusinessIdentity)Csla.ApplicationContext.User.Identity).UserId;
                    this.ModifiedDate = DateTime.Now;
                    this.CreatedBy = this.ModifiedBy;
                    this.CreatedDate = this.ModifiedDate;

                    this.Insert(data);

                    data = dalFactory.Insert(data);

                    this.FilterId = data.FilterId;
                }

                // this.FieldManager.UpdateChildren(data);
            }
        }
コード例 #2
0
        internal static Filter FetchFilter(FilterData data)
        {
            var result = new Filter();

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

            return result;
        }
コード例 #3
0
 private void Child_Fetch(FilterData data)
 {
     this.FilterId = data.FilterId;
     this.IsActive = data.IsActive;
     this.IsArchived = data.IsArchived;
     this.FilterQuery = data.FilterQuery;
     this.Name = data.Name;
     this.SourceTypeId = data.SourceTypeId;
     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;
 }
コード例 #4
0
ファイル: Filter.Data.cs プロジェクト: mattruma/epiworx-csla
 protected void Update(FilterData data)
 {
     data.FilterId = this.FilterId;
     data.IsActive = this.IsActive;
     data.IsArchived = this.IsArchived;
     data.FilterQuery = this.FilterQuery;
     data.Name = this.Name;
     data.SourceTypeId = this.SourceTypeId;
     data.CreatedBy = this.CreatedBy;
     data.CreatedDate = this.CreatedDate;
     data.ModifiedBy = this.ModifiedBy;
     data.ModifiedDate = this.ModifiedDate;
 }
コード例 #5
0
ファイル: Filter.Data.cs プロジェクト: mattruma/epiworx-csla
 protected void Insert(FilterData data)
 {
     this.Update(data);
 }