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); }
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(); }