Git.Storage.Provider/Store/ProductCategoryProvider.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/*******************************************************************************
* Copyright (C) Git Corporation. All rights reserved.
*
* Author: 微软
* Create Date: 2014-01-01 14:55:46
*
* Description: Git.Framework
* www.baidu.com
* Revision History:
* Date Author Description
* 2014-01-01 14:55:46 微软
*********************************************************************************/
using Git.Framework.Log;
using Git.Storage.Entity.Store;
using Git.Framework.DataTypes;
using Git.Framework.DataTypes.ExtensionMethods;
using Git.Framework.ORM;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Git.Storage.Common;
using Git.Framework.Cache;
using System.Transactions;
using Git.Storage.Provider.Base;
using Git.Storage.Entity.Base;
namespace Git.Storage.Provider.Store
{
public partial class ProductCategoryProvider : DataFactory
{
private readonly Log log = Log.Instance(typeof(ProductCategoryProvider));
public ProductCategoryProvider() { }
/// <summary>
/// 添加产品类别
/// </summary>
/// <param name="entity"></param>
/// <returns></returns>
public int Add(ProductCategoryEntity entity)
{
entity.IncludeAll();
int line = this.ProductCategory.Add(entity);
if (line > 0)
{
CacheHelper.Remove(CacheKey.JOOSHOW_PRODUCTCATEGORY_CACHE);
}
return line;
}
/// <summary>
/// 根据产品类别删除删除
/// </summary>
/// <param name="cateNum"></param>
/// <returns></returns>
public int Delete(string cateNum)
{
ProductCategoryEntity entity = new ProductCategoryEntity();
后面还有 140 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
