Beispiel #1
0
        public OpResult AddOperation(OperationType operationType, String parentTable, Dictionary <String, Object> parentObject,
                                     String columnName, String whereClauseForChildren)
        {
            String parentObjectId = TransactionHelper.ConvertObjectMapToObjectId(parentObject);

            return(AddOperation(operationType, parentTable, parentObjectId, columnName, whereClauseForChildren));
        }
Beispiel #2
0
        public OpResult AddOperation(OperationType operationType, String parentTable, Dictionary <String, Object> parentObject,
                                     String columnName, List <Dictionary <String, Object> > childrenMaps)
        {
            String parentObjectId = TransactionHelper.ConvertObjectMapToObjectId(parentObject);

            return(AddOperation(operationType, parentTable, parentObjectId, columnName, childrenMaps));
        }
Beispiel #3
0
        public OpResult AddOperation <E>(OperationType operationType, String parentTable, Dictionary <String, Object> parentObject,
                                         String columnName, List <E> childrenInstances)
        {
            if (childrenInstances == null || childrenInstances.Count == 0)
            {
                throw new ArgumentException(ExceptionMessage.NULL_BULK);
            }

            String parentObjectIds = TransactionHelper.ConvertObjectMapToObjectId(parentObject);

            return(AddOperation(operationType, parentTable, parentObject, columnName, childrenInstances));
        }
Beispiel #4
0
        public OpResult AddOperation(OperationType operationType, String parentTable,
                                     Dictionary <String, Object> parentObject, String columnName, String[] childrenObjectIds)
        {
            String parentObjectId = TransactionHelper.ConvertObjectMapToObjectId(parentObject);

            if (childrenObjectIds == null || childrenObjectIds.Length == 0)
            {
                throw new ArgumentException(ExceptionMessage.NULL_BULK);
            }

            return(AddOperation(operationType, parentTable, parentObjectId, columnName, null, childrenObjectIds));
        }
        public OpResult Delete(String tableName, Dictionary <String, Object> objectMap)
        {
            String objectId = TransactionHelper.ConvertObjectMapToObjectId(objectMap);

            return(Delete(tableName, objectId));
        }