예제 #1
0
        private IUnitOfWorkFactory GetFactory(DatastoreType datastore)
        {
            IUnitOfWorkFactory factory;

            if (!_factories.TryGetValue(datastore, out factory)) {
                throw new NotSupportedException("Specified datastore is not supported.");
            }

            return factory;
        }
예제 #2
0
 public DatastoreAttribute(DatastoreType datastore)
 {
     Datastore = datastore;
 }