public EntityNodeFactory(EntityDrive drive, DbSet <T> dbSet, T entity) { _drive = drive; _dbSet = dbSet; _entity = entity; if (!KeyMap.ContainsKey(typeof(T))) { var entityType = drive.GetEntities().FirstOrDefault(e => e.Name == typeof(T).Name); if (null == entityType) { throw new InvalidOperationException("Unable to locate the specified entity type in the context metadata"); } var name = entityType.KeyMembers[0].Name; KeyMap.Add(typeof(T), name); } }
public PathNodeProcessor(EntityDrive drive) { _drive = drive; }
public EntityContainerNodeFactory(EntityDrive drive, DbSet <T> dbset) { _drive = drive; _dbset = dbset; }
public EntityContainer(EntityDrive drive, string name) { _drive = drive; _name = name; }
public RootNodeFactory(EntityDrive drive) { _drive = drive; }