public CreateSerieCommand(SeriePathManager galleryPathManager, AddItemsToSerieCommand addItemsToSerieCommand, SFContext context)
     : base(addItemsToSerieCommand, context)
 {
     _context                = context;
     _seriePathManager       = galleryPathManager;
     _addItemsToSerieCommand = addItemsToSerieCommand;
 }
Esempio n. 2
0
 public UoWRepository(SFContext ctx)
 {
     Cliente  = new ClienteRepository(ctx);
     Empresa  = new EmpresaRepository(ctx);
     Factura  = new FacturaRepository(ctx);
     Partida  = new PartidaRepository(ctx);
     Producto = new ProductoRepository(ctx);
 }
Esempio n. 3
0
        public Repository(SFContext context)
        {
            if (FluentMapper.EntityMaps.IsEmpty)
            {
                DefaultTypeMap.MatchNamesWithUnderscores = true;
            }

            _context = context;
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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;
 }
Esempio n. 7
0
 public EditSerieCommand(AddItemsToSerieCommand addItemsToSerieCommand, SFContext context)
     : base(addItemsToSerieCommand, context)
 {
     _context = context;
 }
Esempio n. 8
0
 public EmpresaRepository(SFContext _ctx)
 {
     ctx = _ctx;
 }
Esempio n. 9
0
 public TasksRepository(SFContext context)
 {
     db = context;
 }
Esempio n. 10
0
 public RoleRepository(SFContext context)
 {
     db = context;
 }
Esempio n. 11
0
 public EditProjectCommandHandler(SFContext context)
 {
     _context = context;
 }
Esempio n. 12
0
 public ServiceRepository(SFContext context)
 {
     db = context;
 }
Esempio n. 13
0
 public UoWContainer(SFContext context)
 {
     this._context = new SFContext();
     Repository    = new UoWRepository(_context);
 }
 public GetItemsForSerieQuery(SFContext context)
 {
     _context = context;
 }
Esempio n. 15
0
 public GetFirstActiveProjectQuery(SFContext context)
 {
     _context = context;
 }
Esempio n. 16
0
 public ProductoRepository(SFContext _ctx)
 {
     ctx = _ctx;
 }
 public GetProjectByIdQuery(SFContext context)
 {
     _context = context;
 }
Esempio n. 18
0
 public UserRepository(SFContext context)
 {
     db = context;
 }
Esempio n. 19
0
 public AddItemsToSerieCommand(ISettings settings, SeriePathManager galleryPathManager, SFContext context)
 {
     _context          = context;
     _settings         = settings;
     _seriePathManager = galleryPathManager;
 }
Esempio n. 20
0
 public PartidaRepository(SFContext _ctx)
 {
     ctx = _ctx;
 }
Esempio n. 21
0
 public WorkOnTaskRepository(SFContext context)
 {
     db = context;
 }
 public ChangeProjectOrderCommand(SFContext context)
 {
     _context = context;
 }
Esempio n. 23
0
 public FacturaRepository(SFContext _ctx)
 {
     ctx = _ctx;
 }
Esempio n. 24
0
 public GetSerieOverviewQuery(SFContext context)
 {
     _context = context;
 }
 public GetProjectListOverviewQuery()
 {
     _context = new SFContext();
 }
 public GetSerieByIdCommand()
 {
     _context = new SFContext();
 }
Esempio n. 27
0
 public AddProjectCommand(SFContext context)
 {
     _context = context;
 }
Esempio n. 28
0
 public CategoryRepository(SFContext context)
 {
     db = context;
 }
Esempio n. 29
0
 public ClienteRepository(SFContext _ctx)
 {
     ctx = _ctx;
 }
Esempio n. 30
0
 public TaskRequestRepository(SFContext context)
 {
     db = context;
 }