public CreateSerieCommand(SeriePathManager galleryPathManager, AddItemsToSerieCommand addItemsToSerieCommand, SFContext context) : base(addItemsToSerieCommand, context) { _context = context; _seriePathManager = galleryPathManager; _addItemsToSerieCommand = addItemsToSerieCommand; }
public UoWRepository(SFContext ctx) { Cliente = new ClienteRepository(ctx); Empresa = new EmpresaRepository(ctx); Factura = new FacturaRepository(ctx); Partida = new PartidaRepository(ctx); Producto = new ProductoRepository(ctx); }
public Repository(SFContext context) { if (FluentMapper.EntityMaps.IsEmpty) { DefaultTypeMap.MatchNamesWithUnderscores = true; } _context = context; }
public static string[] Get(SFContext ctx) { ObjectContext objectContext = ((IObjectContextAdapter)ctx).ObjectContext; ObjectSet <T> set = objectContext.CreateObjectSet <T>(); string[] PKNames = set.EntitySet.ElementType.KeyMembers.Select(k => k.Name).ToArray(); return(PKNames); }
static void Main(string[] args) { using (var ctx = new SFContext()) { IUoW uow = new UoWContainer(ctx); IProductoService productoService = new ProductoService(uow); var producto = new Producto { Codigo = "SF002", Descripcion = "Producto número Dos", GravaIVA = true, TasaIVA = 16, Costo = 70, Precio = 108.5f }; var response = productoService.Add(producto); uow.SaveChanges(); } }
public BaseSerieCommand(AddItemsToSerieCommand addItemsToSerieCommand, SFContext context) { _addItemsToSerieCommand = addItemsToSerieCommand; _context = context; }
public EditSerieCommand(AddItemsToSerieCommand addItemsToSerieCommand, SFContext context) : base(addItemsToSerieCommand, context) { _context = context; }
public EmpresaRepository(SFContext _ctx) { ctx = _ctx; }
public TasksRepository(SFContext context) { db = context; }
public RoleRepository(SFContext context) { db = context; }
public EditProjectCommandHandler(SFContext context) { _context = context; }
public ServiceRepository(SFContext context) { db = context; }
public UoWContainer(SFContext context) { this._context = new SFContext(); Repository = new UoWRepository(_context); }
public GetItemsForSerieQuery(SFContext context) { _context = context; }
public GetFirstActiveProjectQuery(SFContext context) { _context = context; }
public ProductoRepository(SFContext _ctx) { ctx = _ctx; }
public GetProjectByIdQuery(SFContext context) { _context = context; }
public UserRepository(SFContext context) { db = context; }
public AddItemsToSerieCommand(ISettings settings, SeriePathManager galleryPathManager, SFContext context) { _context = context; _settings = settings; _seriePathManager = galleryPathManager; }
public PartidaRepository(SFContext _ctx) { ctx = _ctx; }
public WorkOnTaskRepository(SFContext context) { db = context; }
public ChangeProjectOrderCommand(SFContext context) { _context = context; }
public FacturaRepository(SFContext _ctx) { ctx = _ctx; }
public GetSerieOverviewQuery(SFContext context) { _context = context; }
public GetProjectListOverviewQuery() { _context = new SFContext(); }
public GetSerieByIdCommand() { _context = new SFContext(); }
public AddProjectCommand(SFContext context) { _context = context; }
public CategoryRepository(SFContext context) { db = context; }
public ClienteRepository(SFContext _ctx) { ctx = _ctx; }
public TaskRequestRepository(SFContext context) { db = context; }