예제 #1
0
        public EntityRecordWithoutChange(EntityBatch associatedEntityBatch, List <string> primaryKeyValues)
            : base(associatedEntityBatch)
        {
            if (primaryKeyValues == null || primaryKeyValues.Count == 0)
            {
                throw new Exception("One or more primary key values are required.");
            }

            foreach (var primaryKeyValue in primaryKeyValues)
            {
                PrimaryKeyValues.Add(primaryKeyValue);
            }
        }
예제 #2
0
        public EntityRecord(EntityBatch associatedEntityBatch, List <string> primaryKeyValues, List <string> secondaryKeyValues)
        {
            if (associatedEntityBatch == null)
            {
                throw new Exception("Associated entity batch can not be null.");
            }

            AssociatedEntityBatch = associatedEntityBatch;

            if (primaryKeyValues != null)
            {
                foreach (var primaryKeyValue in primaryKeyValues)
                {
                    PrimaryKeyValues.Add(primaryKeyValue);
                }
            }

            if (secondaryKeyValues != null)
            {
                SecondaryKeyValues = secondaryKeyValues;
            }
        }
예제 #3
0
 public RecordToUpdate(EntityBatch associatedEntityBatch, List <string> primaryKeyValues, List <string> secondaryKeyValues)
     : base(associatedEntityBatch, primaryKeyValues, secondaryKeyValues)
 {
 }
예제 #4
0
 public RecordToUpdate(EntityBatch associatedEntityBatch, string primaryKeyValue)
     : base(associatedEntityBatch, new List <string>() { primaryKeyValue }, null)
 {
 }
예제 #5
0
 public RecordToUpdate(EntityBatch associatedEntityBatch)
     : base(associatedEntityBatch, null, null)
 {
 }
예제 #6
0
 public EntityRecord(EntityBatch associatedEntityBatch, List <string> primaryKeyValues)
     : this(associatedEntityBatch, primaryKeyValues, null)
 {
 }
예제 #7
0
 public EntityRecord(EntityBatch associatedEntityBatch, string primaryKeyValue)
     : this(associatedEntityBatch, new List <string>() { primaryKeyValue }, null)
 {
 }
예제 #8
0
 public EntityRecord(EntityBatch associatedEntityBatch)
     : this(associatedEntityBatch, null, null)
 {
 }
 public EntityRecordWithDataChange(EntityBatch associatedEntityBatch, List <string> primaryKeyValues, List <string> secondaryKeyValues)
     : base(associatedEntityBatch, primaryKeyValues, secondaryKeyValues)
 {
 }
 public EntityRecordWithDataChange(EntityBatch associatedEntityBatch, string primaryKeyValue)
     : base(associatedEntityBatch, new List <string>() { primaryKeyValue }, null)
 {
 }
 public EntityRecordWithDataChange(EntityBatch associatedEntityBatch)
     : base(associatedEntityBatch, null, null)
 {
 }
예제 #12
0
 public RecordToDelete(EntityBatch associatedEntityBatch, List <string> primaryKeyValues)
     : base(associatedEntityBatch, primaryKeyValues, null)
 {
 }