public PurchaseCommandHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
 public GetSuppliersQueryHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
示例#3
0
 public GetProductsByCategoryQueryHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
 public LoginCustomerQueryHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
示例#5
0
 public GetCategoriesQueryHandler(
     PTSDbContext context,
     INotificationService notificationService)
 {
     _context             = context;
     _notificationService = notificationService;
 }
示例#6
0
        static void Main(string[] args)
        {
            var admin = new Customer {
                CustomerId = 1,
                Username   = "******",
                Password   = Encypt.EncryptString("jed8703"),
                ExternalId = Guid.NewGuid()
            };

            using (var db = new PTSDbContext())
            {
                db.Remove(admin);
                db.SaveChanges();
            }
        }