Beispiel #1
0
        public Db(IEnumerable <IMaterializationHook> materializationHooks = null)
        {
            _idPropertyFinder     = new IdPropertyFinder();
            _foreignKeyFinder     = new ForeignKeyFinderFinder();
            _materializationHooks = materializationHooks == null
                                        ? new List <IMaterializationHook>()
                                        : materializationHooks.ToList();

            _cache = new Cache(new IdGenerator(_idPropertyFinder), new ObjectGraph(), _materializationHooks);
        }
Beispiel #2
0
 public IdGenerator(IIdPropertyFinder idPropertyFinder = null)
 {
     _idPropertyFinder = idPropertyFinder ?? new IdPropertyFinder();
 }
 public ForeignKeyInitializer(IIdPropertyFinder idPropertyFinder = null, IForeignKeyFinder foreignKeyFinder = null)
 {
     _idPropertyFinder = idPropertyFinder ?? new IdPropertyFinder();
     _foreignKeyFinder = foreignKeyFinder ?? new ForeignKeyFinderFinder();
 }
Beispiel #4
0
 public IdGenerator(IIdPropertyFinder idPropertyFinder = null)
 {
     _idPropertyFinder = idPropertyFinder ?? new IdPropertyFinder();
 }
 public ForeignKeyInitializer(IIdPropertyFinder idPropertyFinder = null, IForeignKeyFinder foreignKeyFinder = null)
 {
     _idPropertyFinder = idPropertyFinder ?? new IdPropertyFinder();
     _foreignKeyFinder = foreignKeyFinder ?? new ForeignKeyFinderFinder();
 }