Exemple #1
0
		public ProductsDml(string name, IProductsRepo prodRep, IHelpers helper) : base(helper)
		{
			_nameFilter = string.IsNullOrEmpty(name) ? string.Empty : $"where lower(name) like '%{name.ToLower()}%'";
			_prodRepo = prodRep;
			_dbHelper = prodRep.GetDbHelper();
		}
Exemple #2
0
 public ProductDml(string id, IProductsRepo prodRep, IHelpers helper) : base(helper)
 {
     _id       = id;
     _prodRepo = prodRep;
     _dbHelper = prodRep.GetDbHelper();
 }
Exemple #3
0
 public ProductsOpDml(string id, IProductsRepo prodRep, IHelpers helper) : base(helper)
 {
     _prodIdFilter = string.IsNullOrEmpty(id) ? string.Empty : $"where productid = '{id}'";
     _prodRepo     = prodRep;
     _dbHelper     = prodRep.GetDbHelper();
 }