public ContractService(IEfRepository <Contract> contractRepo, ISaveContext context) { Guard.WhenArgument(contractRepo, "contractRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.context = context; this.contractRepo = contractRepo; }
public CountriesService(IEfRepository <Country> countriesRepo, ISaveContext context) { Guard.WhenArgument(countriesRepo, "citiesRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.countriesRepo = countriesRepo; this.context = context; }
public SchoolController( IEfRepository<School> schoolRepository, ISaveContext context) { this.schoolRepository = schoolRepository; this.saveContext = context; }
public UserService(IEfRepository <User> userRepo, ISaveContext context) { Guard.WhenArgument(userRepo, "userRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.userRepo = userRepo; this.context = context; }
public TerminationNoticeService(IEfRepository <TerminationNotice> terminationNoticeRepo, ISaveContext context) { Guard.WhenArgument(terminationNoticeRepo, "terminationNoticeRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.terminationNoticeRepo = terminationNoticeRepo; this.context = context; }
public CommentsController(IEfRepository <Comment> comments, IEfRepository <User> users, IEfRepository <Book> books, ISaveContext context) { this.comments = comments; this.users = users; this.books = books; this.context = context; }
public CategoriesController(IEfRepository <Category> categories, IEfRepository <User> users, IEfRepository <Book> books, ISaveContext context) { this.categories = categories; this.users = users; this.books = books; this.context = context; }
public VisitsService(IEfRepository <Visit> visitRepo, ISaveContext context) { Guard.WhenArgument(visitRepo, "visitRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.visitRepo = visitRepo; this.context = context; }
public IEnumerable <object> GetChildObjects(ISaveContext context) { List <object> collectedObjects = new List <object>(); ContainerSaveData.GetChildObjects(context, this._typeDefinition, this._containerType, this.Target, collectedObjects); return((IEnumerable <object>)collectedObjects); }
public UsersService(IEfRepository <User> usersRepo, ISaveContext saveContext) { Guard.WhenArgument(usersRepo, nameof(usersRepo)).IsNull().Throw(); Guard.WhenArgument(saveContext, nameof(saveContext)).IsNull().Throw(); this.usersRepo = usersRepo; this.saveContext = saveContext; }
public AlbumService(IEfContextWrapper <Album> albumsRepo, ISaveContext context) { Guard.WhenArgument(albumsRepo, "albumsRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.albumsRepo = albumsRepo; this.context = context; }
public GenreService(IEfContextWrapper <Genre> genresRepo, ISaveContext context) { Guard.WhenArgument(genresRepo, "genresRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.genresRepo = genresRepo; this.context = context; }
public ShortContactInfoService(IEfRepository <ShortContactInfo> shortContactInfo, ISaveContext context) { Guard.WhenArgument(shortContactInfo, "shortContactInfo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.shortContactInfo = shortContactInfo; this.context = context; }
public OrderItemsService(IEfRepository <OrderItem> orderItemsRepo, ISaveContext context) { Guard.WhenArgument(orderItemsRepo, "OrderItemsRepo").IsNull().Throw(); Guard.WhenArgument(context, "OrderItemscontext").IsNull().Throw(); this.orderItemsRepo = orderItemsRepo; this.context = context; }
public SongService(IEfContextWrapper <Song> songsRepo, ISaveContext context) { Guard.WhenArgument(songsRepo, "songRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.songsRepo = songsRepo; this.context = context; }
public HomeController(IUserService userService, ISaveContext saveContext) { Guard.WhenArgument(userService, "userService").IsNull().Throw(); Guard.WhenArgument(saveContext, "saveContext").IsNull().Throw(); this.userService = userService; this.saveContext = saveContext; }
public ArtistService(IEfContextWrapper <Artist> artistsRepo, ISaveContext context) { Guard.WhenArgument(artistsRepo, "artistsRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.artistsRepo = artistsRepo; this.context = context; }
public DataService(IEfRepository <T> repo, ISaveContext context) { Guard.WhenArgument(repo, "IEfRepository").IsNull().Throw(); Guard.WhenArgument(context, "ISaveContext").IsNull().Throw(); this.Data = repo; this.Context = context; }
public FullContactInfosService(IEfRepository <FullContactInfo> fullContactInfosRepo, ISaveContext context) { Guard.WhenArgument(fullContactInfosRepo, "fullContactInfosRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.fullContactInfosRepo = fullContactInfosRepo; this.context = context; }
public OrderDetailsService(IEfRepository <OrderDetail> ordersDetailsRepo, ISaveContext context) { Guard.WhenArgument(ordersDetailsRepo, "ordersDetailsRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.ordersDetailsRepo = ordersDetailsRepo; this.context = context; }
public CategoryService(IEfRepository <Category> categoriesRepo, ISaveContext context) { Guard.WhenArgument(categoriesRepo, "productsRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.categoriesRepo = categoriesRepo; this.context = context; }
public ProductsService(IEfRepository <Product> productsRepo, ISaveContext context) { Guard.WhenArgument(productsRepo, "productsRepo").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.productsRepo = productsRepo; this.context = context; }
public AnimalsService(IEfRepository <Animal> animalsRepo, ISaveContext saveContext) { Guard.WhenArgument(animalsRepo, nameof(animalsRepo)).IsNull().Throw(); Guard.WhenArgument(saveContext, nameof(saveContext)).IsNull().Throw(); this.animalsRepo = animalsRepo; this.saveContext = saveContext; }
public GroupService(IDbRepository <Group> groups, ISaveContext saveContext) { Guard.WhenArgument(groups, "groupService").IsNull().Throw(); Guard.WhenArgument(saveContext, "groupService").IsNull().Throw(); this.groups = groups; this.saveContext = saveContext; }
public ProductService( IEfRepository <Product> productRepository, IEfRepository <Table> tableRepository, ISaveContext saveContext) { this.productRepository = productRepository; this.tableRepository = tableRepository; this.saveContext = saveContext; }
public UserService(IDbRepository <User> users, ISaveContext saveContext, IPrincipal identity) { Guard.WhenArgument(users, "userService").IsNull().Throw(); Guard.WhenArgument(saveContext, "saveContext").IsNull().Throw(); Guard.WhenArgument(identity, "identity").IsNull().Throw(); this.users = users; this.saveContext = saveContext; this.identity = identity; }
public BookService(IEfRepository <Book> books, IEfRepository <User> users, ISaveContext context) { Guard.WhenArgument(books, "books").IsNull().Throw(); Guard.WhenArgument(users, "users").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.books = books; this.users = users; this.context = context; }
public CommentService(IEfRepository <Comment> comments, IEfRepository <User> users, ISaveContext context) { Guard.WhenArgument(comments, "comments").IsNull().Throw(); Guard.WhenArgument(users, "users").IsNull().Throw(); Guard.WhenArgument(context, "context").IsNull().Throw(); this.comments = comments; this.users = users; this.context = context; }
public void FinishLoading(ISaveContext context) { if (UnAppliedSaveData == null) { return; } ApplyUnAppliedSaveData(UnAppliedSaveData, context); UnAppliedSaveData = null; }
public AddressService( IEfRepository <Address> addressRepo, ITownService townService, IStreetService streetService, ISaveContext context) { this.addressRepo = addressRepo; this.townService = townService; this.streetService = streetService; this.context = context; }