public CreateSerieCommand(SeriePathManager galleryPathManager, AddItemsToSerieCommand addItemsToSerieCommand, SFContext context)
     : base(addItemsToSerieCommand, context)
 {
     _context                = context;
     _seriePathManager       = galleryPathManager;
     _addItemsToSerieCommand = addItemsToSerieCommand;
 }
示例#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);
 }
示例#3
0
        public Repository(SFContext context)
        {
            if (FluentMapper.EntityMaps.IsEmpty)
            {
                DefaultTypeMap.MatchNamesWithUnderscores = true;
            }

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