Beispiel #1
0
        protected Row(RowFieldsBase fields)
        {
            if (fields == null)
                throw new ArgumentNullException("fields");

            this.fields = fields.Init();

            TrackAssignments = true;
        }
Beispiel #2
0
 protected LoggingRow(RowFieldsBase fields)
     : base(fields)
 {
     loggingFields = (LoggingRowFields)fields;
 }
Beispiel #3
0
 protected BaseRow(RowFieldsBase fields)
     : base(fields)
 {
     Fields = (BaseRowFields)fields;
 }
 protected LoggingRow(RowFieldsBase fields)
     : base(fields)
 {
     loggingFields = (LoggingRowFields)fields;
 }
Beispiel #5
0
 public static void ChangeGlobalGeneration(RowFieldsBase fields)
 {
     TwoLevelCache.ChangeGlobalGeneration(fields.GenerationKey);
 }
Beispiel #6
0
 protected MultiTenantRow(RowFieldsBase fields)
     : base(fields)
 {
     multiTenantFields = (MultiTenantFields)fields;
 }
Beispiel #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);
            }
        }