コード例 #1
0
ファイル: bn_Reference.cs プロジェクト: tampham47/juddy.vn
 public bn_Reference(pb_Entities connection = null)
 {
     if (connection != null)
     {
         db = connection;
     }
 }
コード例 #2
0
 public bn_UserContact(pb_Entities connection = null)
 {
     if (connection != null)
     {
         db = connection;
     }
 }
コード例 #3
0
 public bn_Comment(pb_Entities connection = null, bool isLazy = true)
 {
     if (connection != null)
     {
         db = connection;
     }
     db.Configuration.LazyLoadingEnabled = isLazy;
 }
コード例 #4
0
ファイル: bn_ProductTag.cs プロジェクト: tampham47/juddy.vn
        public bn_ProductTag(Guid pId, pb_Entities connection = null)
        {
            if (connection != null)
            {
                db = connection;
            }

            productId = pId;
        }
コード例 #5
0
ファイル: bn_Product.cs プロジェクト: tampham47/juddy.vn
        //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);
            }
        }