public bn_Reference(pb_Entities connection = null) { if (connection != null) { db = connection; } }
public bn_UserContact(pb_Entities connection = null) { if (connection != null) { db = connection; } }
public bn_Comment(pb_Entities connection = null, bool isLazy = true) { if (connection != null) { db = connection; } db.Configuration.LazyLoadingEnabled = isLazy; }
public bn_ProductTag(Guid pId, pb_Entities connection = null) { if (connection != null) { db = connection; } productId = pId; }
//make product is unavailable public static int Unavaiable(Guid productId) { using (pb_Entities db = new pb_Entities()) { var re = (int)db.pb_Product_UpdateStatus( productId, EProduct_Status.UnAvailable) .Single(); return(re); } }