예제 #1
0
파일: Row.cs 프로젝트: VictorTomaili/Sanity
        protected Row(RowFieldsBase fields)
        {
            if (fields == null)
                throw new ArgumentNullException("fields");

            this.fields = fields.Init();

            TrackAssignments = true;
        }
예제 #2
0
 protected LoggingRow(RowFieldsBase fields)
     : base(fields)
 {
     loggingFields = (LoggingRowFields)fields;
 }
예제 #3
0
파일: BaseRow.cs 프로젝트: dfaruque/NERP
 protected BaseRow(RowFieldsBase fields)
     : base(fields)
 {
     Fields = (BaseRowFields)fields;
 }
예제 #4
0
 protected LoggingRow(RowFieldsBase fields)
     : base(fields)
 {
     loggingFields = (LoggingRowFields)fields;
 }
예제 #5
0
 public static void ChangeGlobalGeneration(RowFieldsBase fields)
 {
     TwoLevelCache.ChangeGlobalGeneration(fields.GenerationKey);
 }
예제 #6
0
 protected MultiTenantRow(RowFieldsBase fields)
     : base(fields)
 {
     multiTenantFields = (MultiTenantFields)fields;
 }
예제 #7
0
        public static void InvalidateOnCommit(this ITwoLevelCache cache, IUnitOfWork uow, RowFieldsBase fields)
        {
            if (fields is null)
            {
                throw new ArgumentNullException(nameof(fields));
            }

            InvalidateOnCommit(cache, uow, fields.GenerationKey);

            var fieldsType = fields.GetType();

            if (fieldsType.IsNested && fieldsType.DeclaringType != null)
            {
                ProcessTwoLevelCachedAttribute(cache, uow, fieldsType.DeclaringType);
            }
        }