public static ObjectTypeDescriptorRepository RegisterUsingReflection(this ObjectTypeDescriptorRepository repository, Type typeToRegister) { var typeAttibute = GetTypeAttibute(typeToRegister); var objectTypeId = new ObjectTypeId(new Guid(typeAttibute.TypeIdValue)); var typeDescritor = new ObjectTypeDescriptor(typeToRegister, objectTypeId, DiscoverAttributes(typeToRegister), DiscoverRelations(typeToRegister)); repository.RegisterTypeDescriptor(typeDescritor); return(repository); }
public ObjectFacade(IDataFacade dataFacade, ObjectTypeDescriptorRepository objectTypeDescriptorRepository, ICommandExecutor commandExecutor) { this.dataFacade = dataFacade; this.commandExecutor = commandExecutor; this.objectTypeDescriptorRepository = objectTypeDescriptorRepository; }
public UpdatableObjectSpaceSnapshot(ObjectTypeDescriptorRepository objectTypeDescriptorRepository, IDataRetrievalStrategy dataRetrievalStrategy, ICommandExecutor commandExecutor) : base(objectTypeDescriptorRepository, dataRetrievalStrategy) { this.commandExecutor = commandExecutor; }
public ObjectSpaceSnapshot(ObjectTypeDescriptorRepository objectTypeDescriptorRepository, IDataRetrievalStrategy dataRetrievalStrategy) { this.objectTypeDescriptorRepository = objectTypeDescriptorRepository; this.dataRetrievalStrategy = dataRetrievalStrategy; }
public static ObjectTypeDescriptorRepository RegisterUsingReflection <T>(this ObjectTypeDescriptorRepository repository) { return(RegisterUsingReflection(repository, typeof(T))); }
public ObjectFacade(IDataFacade dataFacade, ObjectTypeDescriptorRepository objectTypeDescriptorRepository, ICommandExecutor commandExecutor) { this.dataFacade = dataFacade; this.commandExecutor = commandExecutor; this.objectTypeDescriptorRepository = objectTypeDescriptorRepository; }
public UpdatableObjectSpaceSnapshot(ObjectTypeDescriptorRepository objectTypeDescriptorRepository, IDataRetrievalStrategy dataRetrievalStrategy, ICommandExecutor commandExecutor) : base(objectTypeDescriptorRepository, dataRetrievalStrategy) { this.commandExecutor = commandExecutor; }