public DevelopmentType(IBaseEntityRepository <Steward> stewardRepository) { Field(_ => _.Id); Field(_ => _.DevelopingId); Field(_ => _.Difficulty); Field(_ => _.Name); Field(_ => _.StewardId, nullable: true); FieldAsync <StewardType, Steward>( "steward", resolve: async context => { return(await stewardRepository.GetByIdAsync(context.Source.StewardId)); } ); }
public SubsidiaryType( IBaseEntityRepository <Development> developmentRepository, IBaseEntityRepository <Steward> stewardRepository ) { Field(_ => _.Id); Field(_ => _.FiefId); Field(_ => _.Name); Field(_ => _.Silver, nullable: true); Field(_ => _.Base, nullable: true); Field(_ => _.Luxury, nullable: true); Field(_ => _.Iron, nullable: true); Field(_ => _.Stone, nullable: true); Field(_ => _.Wood, nullable: true); Field(_ => _.Quality, nullable: true); Field(_ => _.DevelopmentLevel); Field(_ => _.DaysworkThisYear); Field(_ => _.DaysworkBuild); Field(_ => _.DaysworkUpkeep); Field(_ => _.IncomeFactor); Field(_ => _.SilverPortion); Field(_ => _.BasePortion); Field(_ => _.LuxuryPortion); Field(_ => _.SpringModifier); Field(_ => _.SummerModifier); Field(_ => _.FallModifier); Field(_ => _.WinterModifier); Field(_ => _.IsBeingDeveloped); Field(_ => _.IsInformationItem); Field(_ => _.StewardId); Field(_ => _.DevelopmentId); FieldAsync <DevelopmentType, Development>( "development", resolve: async context => { return(await developmentRepository.GetByIdAsync(context.Source.DevelopmentId)); } ); FieldAsync <StewardType, Steward>( "steward", resolve: async context => { return(await stewardRepository.GetByIdAsync(context.Source.StewardId)); } ); }
public BuilderType(IBaseEntityRepository <Building> buildingRepository) { Field(_ => _.Id); Field(_ => _.FiefId); Field(_ => _.Name); Field(_ => _.Age); Field(_ => _.Resources); Field(_ => _.Loyalty); Field(_ => _.Skill); Field(_ => _.Notes); Field(_ => _.BuildingId, nullable: true); FieldAsync <BuildingType, Building>( "building", resolve: async context => { return(await buildingRepository.GetByIdAsync(context.Source.Id)); } ); }
public BoatbuilderType( IBaseEntityRepository <Shipyard> repository ) { Field(_ => _.Id); Field(_ => _.Name); Field(_ => _.Age); Field(_ => _.Resources); Field(_ => _.Loyalty); Field(_ => _.Skill); Field(_ => _.Notes); Field(_ => _.ShipyardId, nullable: true); FieldAsync <ShipyardType, Shipyard>( "shipyard", resolve: async context => { return(await repository.GetByIdAsync(context.Source.ShipyardId)); } ); }
public FellingType( IBaseEntityRepository <Development> developmentRepository, IBaseEntityRepository <Steward> stewardRepository ) { Field(_ => _.Id); Field(_ => _.FiefId); Field(_ => _.Name); Field(_ => _.Silver); Field(_ => _.Base); Field(_ => _.Luxury); Field(_ => _.Iron); Field(_ => _.Stone); Field(_ => _.Wood); Field(_ => _.AmountLandclearing); Field(_ => _.AmountLandclearingOfFelling); Field(_ => _.AmountFelling); Field(_ => _.AmountClearUseless); Field(_ => _.DevelopmentLevel); Field(_ => _.IsBeingDeveloped); Field(_ => _.Quality); Field(_ => _.IsInformationItem); Field(_ => _.DevelopmentId); Field(_ => _.StewardId); FieldAsync <DevelopmentType, Development>( "development", resolve: async context => { return(await developmentRepository.GetByIdAsync(context.Source.DevelopmentId)); } ); FieldAsync <StewardType, Steward>( "steward", resolve: async context => { return(await stewardRepository.GetByIdAsync(context.Source.StewardId)); } ); }
public IncomeType( IBaseEntityRepository <Development> developmentRepository, IBaseEntityRepository <Steward> stewardRepository ) { Field(_ => _.Id); Field(_ => _.FiefId); Field(_ => _.Type, type: typeof(EnumerationGraphType <TypeOfIncome>)); Field(_ => _.Name); Field(_ => _.Silver, nullable: true); Field(_ => _.Base, nullable: true); Field(_ => _.Luxury, nullable: true); Field(_ => _.Iron, nullable: true); Field(_ => _.Stone, nullable: true); Field(_ => _.Wood, nullable: true); Field(_ => _.Quality, nullable: true); Field(_ => _.ShowInIncomes); Field(_ => _.SpringModifier); Field(_ => _.SummerModifier); Field(_ => _.FallModifier); Field(_ => _.WinterModifier); Field(_ => _.DevelopmentLevel); Field(_ => _.IsBeingDeveloped); Field(_ => _.IsInformationItem); FieldAsync <DevelopmentType, Development>( "development", resolve: async context => { return(await developmentRepository.GetByIdAsync(context.Source.DevelopmentId)); } ); FieldAsync <StewardType, Steward>( "steward", resolve: async context => { return(await stewardRepository.GetByIdAsync(context.Source.StewardId)); } ); }
public MarketType( IBaseEntityRepository <Development> developmentRepository, IBaseEntityRepository <Steward> stewardRepository ) { Field(_ => _.Id); Field(_ => _.FiefId); Field(_ => _.Name); Field(_ => _.DevelopmentLevel); Field(_ => _.IsInformationItem); Field(_ => _.Wood, nullable: true); Field(_ => _.Stone, nullable: true); Field(_ => _.Iron, nullable: true); Field(_ => _.Quality, nullable: true); Field(_ => _.Silver, nullable: true); Field(_ => _.Base, nullable: true); Field(_ => _.Luxury, nullable: true); Field(_ => _.Merchandise); Field(_ => _.Taxes); Field(_ => _.Bailiffs); Field(_ => _.Crime); Field(_ => _.StewardId, nullable: true); Field(_ => _.DevelopmentId, nullable: true); FieldAsync <DevelopmentType, Development>( "development", resolve: async context => { return(await developmentRepository.GetByIdAsync(context.Source.DevelopmentId)); } ); FieldAsync <StewardType, Steward>( "steward", resolve: async context => { return(await stewardRepository.GetByIdAsync(context.Source.StewardId)); } ); }
protected BaseService(IBaseEntityRepository <TSEntity> repository) { _repository = repository; }
public EntityTypeService(ICodeGeneratorService codeGen, IBaseEntityRepository <EntityType> baseRepository) : base(baseRepository) { _baseRepository = baseRepository; _codeGen = codeGen; }
public BaseEntityService(IBaseEntityRepository <TEntity> baseEntityRepository) { _baseEntityRepository = baseEntityRepository; }
public SubscriptionService(IBaseEntityRepository <T> repository) { _repository = repository; }
public CampaignService(IBaseEntityRepository <Entity> db) { _db = db; }
public MerchantService(IBaseEntityRepository <Merchant> baseEntityRepository, IMerchantRepository merchantRepository) : base(baseEntityRepository) { _merchantRepository = merchantRepository; _baseEntityRepository = baseEntityRepository; }
public SupplierService(ICodeGeneratorService codeGeneratorService, IBaseEntityRepository <Supplier> baseEntityRepository, ISupplierRepository supplierRepository) : base(baseEntityRepository) { _supplierRepository = supplierRepository; _baseEntityRepository = baseEntityRepository; _codeGeneratorService = codeGeneratorService; }
public ConsumerService(IBaseEntityRepository <Consumer> baseEntityRepository, IConsumerRepository consumerRepository) : base(baseEntityRepository) { _consumerRepository = consumerRepository; _baseEntityRepository = baseEntityRepository; }
public AnchorService(ICodeGeneratorService codeGeneratorService, UserManager <ApplicationUser> userManager, RoleManager <IdentityRole> roleManager, IPasswordGeneratorService codeGenerator, IAnchorRepository anchorRepository, IBaseEntityRepository <Anchor> baseEntityRepository) : base(baseEntityRepository) { _userManager = userManager; _roleManager = roleManager; _anchorRepository = anchorRepository; _baseEntityRepository = baseEntityRepository; _codeGenerator = codeGenerator; _codeGeneratorService = codeGeneratorService; }
public CountryService(ICodeGeneratorService codeGenerator, ICountryRepository countryRepository, IBaseEntityRepository <Country> baseEntityRepository) : base(baseEntityRepository) { _baseEntityRepository = baseEntityRepository; _countryRepository = countryRepository; _codeGenerator = codeGenerator; }
public FiefType( IBaseEntityRepository <Market> marketRepository, IBaseEntityRepository <Steward> stewardRepository, IBaseEntityRepository <Port> portRepository, IBaseEntityRepository <Livingcondition> livingconditionRepository, IBaseEntityRepository <Road> roadRepository, IBaseEntityRepository <Inheritance> inheritanceRepository, IBaseEntityRepository <Village> villageRepository, IIndustryRepository industryRepository, IBaseEntityRepository <Building> buildingRepository, IBaseEntityRepository <Resident> residentRepository, IBaseEntityRepository <Soldier> soldierRepository, IBaseEntityRepository <Employee> employeeRepository, IBaseEntityRepository <Builder> builderRepository ) { Field(_ => _.Id); Field(_ => _.GamesessionId); Field(_ => _.UserId); Field(_ => _.Name); Field(_ => _.ManorName); Field(_ => _.Acres); Field(_ => _.FarmlandAcres); Field(_ => _.PastureAcres); Field(_ => _.WoodlandAcres); Field(_ => _.FellingAcres); Field(_ => _.UnusableAcres); Field(_ => _.LivingconditionId); Field(_ => _.RoadId); Field(_ => _.InheritanceId); Field(_ => _.BuildingIds); Field(_ => _.SoldierIds); Field(_ => _.EmployeeIds); Field(_ => _.StewardId, nullable: true); Field(_ => _.PortId, nullable: true); Field(_ => _.MarketId, nullable: true); Field(_ => _.VillageIds); Field(_ => _.ResidentIds); Field(_ => _.BuilderIds); FieldAsync <MarketType, Market>( "market", resolve: async context => { return(await marketRepository.GetByIdAsync(context.Source.MarketId)); } ); FieldAsync <StewardType, Steward>( "steward", resolve: async context => { return(await stewardRepository.GetByIdAsync(context.Source.StewardId)); } ); FieldAsync <PortType, Port>( "port", resolve: async context => { return(await portRepository.GetByIdAsync(context.Source.PortId)); } ); FieldAsync <LivingconditionType, Livingcondition>( "livingcondition", resolve: async context => { return(await livingconditionRepository.GetByIdAsync(context.Source.LivingconditionId)); } ); FieldAsync <RoadType, Road>( "road", resolve: async context => { return(await roadRepository.GetByIdAsync(context.Source.RoadId)); } ); FieldAsync <InheritanceType, Inheritance>( "inheritance", resolve: async context => { return(await inheritanceRepository.GetByIdAsync(context.Source.InheritanceId)); } ); FieldAsync <ListGraphType <VillageType>, ICollection <Village> >( "villages", resolve: async context => { return(await villageRepository.GetListAsync(context.Source.VillageIds)); } ); FieldAsync <ListGraphType <IndustryType>, ICollection <Industry> >( "industries", resolve: async context => { return(await industryRepository.GetIndustriesForFief(context.Source.Id)); } ); FieldAsync <ListGraphType <BuildingType>, ICollection <Building> >( "buildings", resolve: async context => { return(await buildingRepository.GetListAsync(context.Source.BuildingIds)); } ); FieldAsync <ListGraphType <ResidentType>, ICollection <Resident> >( "residents", resolve: async context => { return(await residentRepository.GetListAsync(context.Source.ResidentIds)); } ); FieldAsync <ListGraphType <SoldierType>, ICollection <Soldier> >( "soldiers", resolve: async context => { return(await soldierRepository.GetListAsync(context.Source.SoldierIds)); } ); FieldAsync <ListGraphType <EmployeeType>, ICollection <Employee> >( "employees", resolve: async context => { return(await employeeRepository.GetListAsync(context.Source.EmployeeIds)); } ); FieldAsync <ListGraphType <BuilderType>, ICollection <Builder> >( "builders", resolve: async context => { return(await builderRepository.GetListAsync(context.Source.BuilderIds)); } ); }
partial void AddBuildingFields(IBaseEntityRepository <Building> repository);
public RegionService(ICountryService countryService, ICodeGeneratorService codeGenService, IRegionRepository regionRepository, IBaseEntityRepository <Region> baseEntityRepository) : base(baseEntityRepository) { _baseEntityRepository = baseEntityRepository; _regionRepository = regionRepository; _codeGenService = codeGenService; _countryService = countryService; }
public BoatType( IBaseEntityRepository <Boatbuilder> boatbuilderRepository, IBaseEntityRepository <Cargo> cargoRepository, IBaseEntityRepository <Shipyard> shipyardRepository, IBaseEntityRepository <Soldier> soldierRepository ) { Field(_ => _.Id); Field(_ => _.Name); Field(_ => _.Length); Field(_ => _.Width); Field(_ => _.Depth); Field(_ => _.CrewNeeded); Field(_ => _.Seamens); Field(_ => _.Mariners); Field(_ => _.Rowers); Field(_ => _.RowersNeeded); Field(_ => _.MaxCargo); Field(_ => _.Sailors); Field(_ => _.Officers); Field(_ => _.Navigators); Field(_ => _.Amount); Field(_ => _.CostWhenFinishedSilver); Field(_ => _.NextFinishedDays); Field(_ => _.BuildTimeInDays); Field(_ => _.BuildTimeInDaysAll); Field(_ => _.Status); Field(_ => _.BackInDays); Field(_ => _.Type, type: typeof(EnumerationGraphType <TypeOfBoat>)); Field(_ => _.DisplayName); Field(_ => _.Masts); Field(_ => _.LengthMin); Field(_ => _.LengthMax); Field(_ => _.BL); Field(_ => _.DB); Field(_ => _.Crew); Field(_ => _.BenchMod); Field(_ => _.BenchMulti); Field(_ => _.OarsMulti); Field(_ => _.RowerMulti); Field(_ => _.Seaworthiness); Field(_ => _.ImgSrc); Field(_ => _.BoatbuilderId, nullable: true); Field(_ => _.CargoId, nullable: true); Field(_ => _.ShipyardId, nullable: true); Field(_ => _.SoldierIds); FieldAsync <BoatbuilderType, Boatbuilder>( "boatbuilder", resolve: async context => { return(await boatbuilderRepository.GetByIdAsync(context.Source.BoatbuilderId)); } ); FieldAsync <CargoType, Cargo>( "cargo", resolve: async context => { return(await cargoRepository.GetByIdAsync(context.Source.CargoId)); } ); FieldAsync <ShipyardType, Shipyard>( "shipyard", resolve: async context => { return(await shipyardRepository.GetByIdAsync(context.Source.ShipyardId)); } ); FieldAsync <ListGraphType <SoldierType>, ICollection <Soldier> >( "soldiers", resolve: async context => { return(await soldierRepository.GetListAsync(context.Source.SoldierIds)); } ); }