public GenericFilterHelper(
     IDomainObjectModel domainObjectModel,
     IDataStructureReadParameters dataStructureReadParameters)
 {
     _domainObjectModel           = domainObjectModel;
     _dataStructureReadParameters = dataStructureReadParameters;
 }
 public SimpleWindowsAuthorizationProvider(
     IDomainObjectModel domainObjectModel,
     Lazy<IPermissionLoader> permissionLoader)
 {
     _domainObjectModel = domainObjectModel;
     _permissionLoader = permissionLoader;
 }
Beispiel #3
0
 public static XmlDataArray Create <T>(IDomainObjectModel domainObjectModel, IEnumerable <T> data) where T : class
 {
     return(new XmlDataArray(domainObjectModel, typeof(T))
     {
         Data = (data == null || data.Count() == 0) ? null : data.ToArray()
     });
 }
 public EntityFrameworkGenerateMetadataFiles(ILogProvider logProvider, IDomainObjectModel dom, ConnectionString connectionString, GeneratedFilesCache cache)
 {
     _performanceLogger = logProvider.GetLogger("Performance");
     _dom = dom;
     _connectionString = connectionString;
     _cache            = cache;
 }
Beispiel #5
0
 public static XmlDomainData Create <T>(IDomainObjectModel domainObjectModel, T data)
 {
     return(new XmlDomainData(domainObjectModel, typeof(T))
     {
         _data = data
     });
 }
 public ServerCommandsUtility(
     ILogProvider logProvider,
     ApplyFiltersOnClientRead applyFiltersOnClientRead,
     IDomainObjectModel domainObjectModel)
 {
     _logger = logProvider.GetLogger(GetType().Name);
     _applyFiltersOnClientRead = applyFiltersOnClientRead;
     _domainObjectModel        = domainObjectModel;
 }
 public NHibernateMappingGenerator(
     ICodeGenerator codeGenerator,
     IPluginsContainer<IConceptMappingCodeGenerator> plugins,
     IDomainObjectModel domainObjectModel,
     ILogProvider logProvider)
 {
     _plugins = plugins;
     _codeGenerator = codeGenerator;
     _domainObjectModel = domainObjectModel;
     _performanceLogger = logProvider.GetLogger("Performance");
 }
 public ServiceUtility(
     IProcessingEngine processingEngine,
     ILogProvider logProvider,
     IDomainObjectModel domainObjectModel)
 {
     _processingEngine  = processingEngine;
     _logger            = logProvider.GetLogger("RestService");
     _commandsLogger    = logProvider.GetLogger("RestService Commands");
     _performanceLogger = logProvider.GetLogger("Performance");
     _logger.Trace("Rest Service loader initialized.");
     _domainObjectModel = domainObjectModel;
 }
Beispiel #9
0
 public static Type GetType(this IDomainObjectModel dom, string name)
 {
     foreach (Assembly a in dom.Assemblies)
     {
         Type type = a.GetType(name);
         if (type != null)
         {
             return(type);
         }
     }
     return(null);
 }
Beispiel #10
0
 public ClaimGenerator(
     IPluginsContainer<IClaimProvider> claimProviders,
     IDslModel dslModel,
     IDomainObjectModel domainObjectModel,
     ILogProvider logProvider,
     IClaimRepository claimRepository)
 {
     _claimProviders = claimProviders;
     _dslModel = dslModel;
     _performanceLogger = logProvider.GetLogger("Performance");
     _logger = logProvider.GetLogger("ClaimGenerator");
     _claimRepository = claimRepository;
 }
 public NHibernatePersistenceEngine(
     ILogProvider logProvider,
     INHibernateMapping nHibernateMapping,
     IDomainObjectModel domainObjectModel,
     ConnectionString connectionString,
     IEnumerable<INHibernateConfigurationExtension> nHibernateConfigurationExtensions)
 {
     _performanceLogger = logProvider.GetLogger("Performance");
     _nHibernateMapping = nHibernateMapping;
     _domainObjectModel = domainObjectModel;
     _connectionString = connectionString;
     _nHibernateConfigurationExtensions = nHibernateConfigurationExtensions;
 }
Beispiel #12
0
 public RhetosService(
     IProcessingEngine processingEngine,
     IEnumerable<ICommandInfo> commands,
     ILogProvider logProvider,
     IDomainObjectModel domainObjectModel)
 {
     _processingEngine = processingEngine;
     _commands = commands;
     _logger = logProvider.GetLogger("IServerApplication.RhetosService.Execute");
     _commandsLogger = logProvider.GetLogger("IServerApplication Commands");
     _commandResultsLogger = logProvider.GetLogger("IServerApplication CommandResults");
     _performanceLogger = logProvider.GetLogger("Performance");
     _domainObjectModel = domainObjectModel;
 }
Beispiel #13
0
 public ApplicationGenerator(
     ILogProvider logProvider,
     ISqlExecuter sqlExecuter,
     IDslModel dslModel,
     IDomainObjectModel domGenerator,
     IPluginsContainer <IGenerator> generatorsContainer,
     DatabaseCleaner databaseCleaner,
     DataMigration dataMigration,
     IDatabaseGenerator databaseGenerator,
     IDslScriptsProvider dslScriptsLoader)
 {
     _deployPackagesLogger = logProvider.GetLogger("DeployPackages");
     _performanceLogger    = logProvider.GetLogger("Performance");
     _sqlExecuter          = sqlExecuter;
     _dslModel             = dslModel;
     _domGenerator         = domGenerator;
     _generatorsContainer  = generatorsContainer;
     _databaseCleaner      = databaseCleaner;
     _dataMigration        = dataMigration;
     _databaseGenerator    = databaseGenerator;
     _dslScriptsLoader     = dslScriptsLoader;
 }
Beispiel #14
0
 public static IEnumerable <Type> GetTypes(this IDomainObjectModel dom)
 {
     return(dom.Assemblies.SelectMany(assembly => assembly.GetTypes()));
 }
 /// <param name="domainObjectModel">The parameter may be null is the object model is not yet generated.</param>
 public GenericDataContractResolver(IDomainObjectModel domainObjectModel)
 {
     _domainObjectModel = domainObjectModel;
 }
Beispiel #16
0
 /// <param name="domainObjectModel">
 /// Use of domainObjectModel.GetType(string) is needed along with Type.GetType(string) to find objects in the generate domain object model.
 /// Since DOM assembly is not directly referenced from other dlls, Type.GetType will not find types in DOM
 /// before the Dom.GetType is used. The problem usually manifests on the first server call after restarting the process.
 /// The parameter may be null is the object model is not yet generated.
 /// </param>
 public XmlUtility(IDomainObjectModel domainObjectModel)
 {
     _resolver = new GenericDataContractResolver(domainObjectModel);
 }
Beispiel #17
0
 /// <param name="domainObjectModel">The parameter may be null is the object model is not yet generated.</param>
 public GenericDataContractResolver(IDomainObjectModel domainObjectModel)
 {
     _domainObjectModel = domainObjectModel;
 }
Beispiel #18
0
 public GenericFilterHelper(IDomainObjectModel domainObjectModel)
 {
     _domainObjectModel = domainObjectModel;
 }
Beispiel #19
0
 public XmlDataArray(IDomainObjectModel domainObjectModel, Type elementType, object[] data)
 {
     _xmlUtility      = new XmlUtility(domainObjectModel);
     this.ElementType = elementType;
     this.Data        = data;
 }
Beispiel #20
0
 public RestImpl(IProcessingEngine processingEngine, IDomainObjectModel domainObjectModel)
 {
     _processingEngine  = processingEngine;
     _domainObjectModel = domainObjectModel;
 }
Beispiel #21
0
 public XmlDomainData(IDomainObjectModel domainObjectModel, Type elementType, object data)
 {
     _xmlUtility  = new XmlUtility(domainObjectModel);
     _elementType = elementType;
     _data        = data;
 }
Beispiel #22
0
 public XmlDomainData(IDomainObjectModel domainObjectModel, Type elementType)
     : this(domainObjectModel, elementType, null)
 {
 }
Beispiel #23
0
 public SecurityRestService(IDomainObjectModel domainObjectModel)
 {
     _restImpl = new RestImpl(domainObjectModel);
 }
Beispiel #24
0
 public XmlDataTypeProvider(IDomainObjectModel domainObjectModel)
 {
     _domainObjectModel = domainObjectModel;
 }
Beispiel #25
0
 public ReflectionHelper(string entityName, IDomainObjectModel domainObjectModel, Lazy <IRepository> repository)
 {
     _entityName        = entityName;
     _domainObjectModel = domainObjectModel;
     _repository        = repository;
 }
 public EntityFrameworkGenerateMetadataFiles(ILogProvider logProvider, IDomainObjectModel dom, ConnectionString connectionString)
 {
     _performanceLogger = logProvider.GetLogger("Performance");
     _dom = dom;
     _connectionString = connectionString;
 }
 public QueryParameters(IRhetosComponent <IDomainObjectModel> rhetosDomainObjectModel)
 {
     this.domainObjectModel = rhetosDomainObjectModel.Value;
 }