public UnitOfWork() { Dictionary <String, Type> clazzes = new Dictionary <String, Type>(); opResultIdStrings = new List <String>(); OpResultIdGenerator opResultIdGenerator = new OpResultIdGenerator(opResultIdStrings); unitOfWorkCreate = new UnitOfWorkCreateImpl(operations, opResultIdGenerator, clazzes); unitOfWorkDelete = new UnitOfWorkDeleteImpl(operations, opResultIdGenerator); unitOfWorkUpdate = new UnitOfWorkUpdateImpl(operations, opResultIdGenerator, clazzes); unitOfWorkFind = new UnitOfWorkFindImpl(operations, opResultIdGenerator); RelationOperationImpl relationOperation = new RelationOperationImpl(operations, opResultIdGenerator); unitOfWorkAddRelation = new UnitOfWorkAddRelationImpl(relationOperation); unitOfWorkSetRelation = new UnitOfWorkSetRelationImpl(relationOperation); unitOfWorkDeleteRelation = new UnitOfWorkDeleteRelationImpl(relationOperation); unitOfWorkExecutor = new UnitOfWorkExecutorImpl(this, clazzes); }
internal UnitOfWorkUpdateImpl(LinkedList <Operation> operations, OpResultIdGenerator opResultIdGenerator, Dictionary <String, Type> clazzes) { this.operations = operations; this.opResultIdGenerator = opResultIdGenerator; this.clazzes = clazzes; }
internal UnitOfWorkFindImpl(LinkedList <Operation> operations, OpResultIdGenerator opResultIdGenerator) { this.operations = operations; this.opResultIdGenerator = opResultIdGenerator; }
public RelationOperationImpl(LinkedList <Operation> operations, OpResultIdGenerator opResultIdGenerator) { this.operations = operations; this.opResultIdGenerator = opResultIdGenerator; }