Exemple #1
0
        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 UnitOfWorkDeleteRelationImpl(RelationOperationImpl relationOperation)
 {
     this.relationOperation = relationOperation;
 }