当前位置: 首页>>代码示例>>C#>>正文


C# NoName类代码示例

本文整理汇总了C#中NoName的典型用法代码示例。如果您正苦于以下问题:C# NoName类的具体用法?C# NoName怎么用?C# NoName使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


NoName类属于命名空间,在下文中一共展示了NoName类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.OrderModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_spOrder_ADD");
     db.AddInParameter(dbCommand, "UserId", DbType.Int32, model.UserId);
     db.AddInParameter(dbCommand, "OrderId", DbType.Int32, model.OrderId);
     db.AddInParameter(dbCommand, "OrderStatus", DbType.Byte, model.OrderStatus);
     db.AddInParameter(dbCommand, "PayMethod", DbType.Byte, model.PayMethod);
     db.AddInParameter(dbCommand, "ShipMethod", DbType.Byte, model.ShipMethod);
     db.AddInParameter(dbCommand, "PayStatus", DbType.Byte, model.PayStatus);
     db.AddInParameter(dbCommand, "Paysum", DbType.Decimal, model.Paysum);
     db.AddInParameter(dbCommand, "ShipFee", DbType.Decimal, model.ShipFee);
     db.AddInParameter(dbCommand, "ProductFee", DbType.Decimal, model.ProductFee);
     db.AddInParameter(dbCommand, "DerateFee", DbType.Decimal, model.DerateFee);
     db.AddInParameter(dbCommand, "AddressId", DbType.Int32, model.AddressId);
     db.AddInParameter(dbCommand, "RecieverName", DbType.AnsiString, model.RecieverName);
     db.AddInParameter(dbCommand, "RecieverEmail", DbType.AnsiString, model.RecieverEmail);
     db.AddInParameter(dbCommand, "RecieverPhone", DbType.AnsiString, model.RecieverPhone);
     db.AddInParameter(dbCommand, "Postalcode", DbType.AnsiString, model.Postalcode);
     db.AddInParameter(dbCommand, "RecieverCity", DbType.AnsiString, model.RecieverCity);
     db.AddInParameter(dbCommand, "RecieverProvince", DbType.AnsiString, model.RecieverProvince);
     db.AddInParameter(dbCommand, "AddressDetial", DbType.AnsiString, model.AddressDetial);
     db.AddInParameter(dbCommand, "ChangeTime", DbType.DateTime, model.ChangeTime);
     db.AddInParameter(dbCommand, "PayTime", DbType.DateTime, model.PayTime);
     db.AddInParameter(dbCommand, "CreateTime", DbType.DateTime, model.CreateTime);
     db.AddInParameter(dbCommand, "OrderType", DbType.Byte, model.OrderType);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:31,代码来源:OrderModelDal.cs

示例2: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.RoleModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_maRole_ADD");
     db.AddInParameter(dbCommand, "RoleId", DbType.Int32, model.RoleId);
     db.AddInParameter(dbCommand, "RoleName", DbType.AnsiString, model.RoleName);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:11,代码来源:RoleModelDal.cs

示例3: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.ProductExtModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_pdProductExt_ADD");
     db.AddInParameter(dbCommand, "ProductId", DbType.Int32, model.ProductId);
     db.AddInParameter(dbCommand, "ProductDesc", DbType.String, model.ProductDesc);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:11,代码来源:ProductExtModelDal.cs

示例4: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.ContentModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_cmsContent_ADD");
     db.AddInParameter(dbCommand, "CmsTagId", DbType.Int32, model.CmsTagId);
     db.AddInParameter(dbCommand, "Content", DbType.String, model.Content);
     db.AddInParameter(dbCommand, "LastModifyTime", DbType.DateTime, model.LastModifyTime);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:12,代码来源:ContentModelDal.cs

示例5: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.SalesProductModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_pdSalesProduct_ADD");
     db.AddInParameter(dbCommand, "ProductId", DbType.Int32, model.ProductId);
     db.AddInParameter(dbCommand, "SaleType", DbType.Byte, model.SaleType);
     db.AddInParameter(dbCommand, "SiteId", DbType.Int32, model.SiteId);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:12,代码来源:SalesProductModelDal.cs

示例6: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.LoginLogModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_umLoginLog_ADD");
     db.AddInParameter(dbCommand, "UserId", DbType.Int32, model.UserId);
     db.AddInParameter(dbCommand, "LoginTime", DbType.DateTime, model.LoginTime);
     db.AddInParameter(dbCommand, "IP", DbType.AnsiString, model.IP);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:12,代码来源:LoginLogModelDal.cs

示例7: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.AuctionLogModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_auAuctionLog_ADD");
     db.AddInParameter(dbCommand, "AuctionId", DbType.Int32, model.AuctionId);
     db.AddInParameter(dbCommand, "UserName", DbType.AnsiString, model.UserName);
     db.AddInParameter(dbCommand, "AuctionTime", DbType.DateTime, model.AuctionTime);
     db.AddInParameter(dbCommand, "AutionPrice", DbType.Decimal, model.AutionPrice);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:13,代码来源:AuctionLogModelDal.cs

示例8: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.CommendModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_ssCommend_ADD");
     db.AddInParameter(dbCommand, "SchemeId", DbType.Int32, model.SchemeId);
     db.AddInParameter(dbCommand, "CateId", DbType.Int32, model.CateId);
     db.AddInParameter(dbCommand, "ProductId", DbType.Int32, model.ProductId);
     db.AddInParameter(dbCommand, "Quantity", DbType.Int32, model.Quantity);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:13,代码来源:CommendModelDal.cs

示例9: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.OrderChangeLogModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_spOrderChangeLog_ADD");
     db.AddInParameter(dbCommand, "OrderId", DbType.Int32, model.OrderId);
     db.AddInParameter(dbCommand, "ChangeTime", DbType.DateTime, model.ChangeTime);
     db.AddInParameter(dbCommand, "Remark", DbType.AnsiString, model.Remark);
     db.AddInParameter(dbCommand, "Operator", DbType.AnsiString, model.Operator);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:13,代码来源:OrderChangeLogModelDal.cs

示例10: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.VoteGroupModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_voVoteGroup_ADD");
     db.AddInParameter(dbCommand, "VoteGroupId", DbType.Int32, model.VoteGroupId);
     db.AddInParameter(dbCommand, "VoteId", DbType.Int32, model.VoteId);
     db.AddInParameter(dbCommand, "GroupType", DbType.Byte, model.GroupType);
     db.AddInParameter(dbCommand, "Subject", DbType.AnsiString, model.Subject);
     db.AddInParameter(dbCommand, "Content", DbType.AnsiString, model.Content);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:14,代码来源:VoteGroupModelDal.cs

示例11: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.VoteItemsModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_voVoteItems_ADD");
     db.AddInParameter(dbCommand, "VoteGroupId", DbType.Int32, model.VoteGroupId);
     db.AddInParameter(dbCommand, "VoteId", DbType.Int32, model.VoteId);
     db.AddInParameter(dbCommand, "ItemId", DbType.Int32, model.ItemId);
     db.AddInParameter(dbCommand, "ItemContent", DbType.AnsiString, model.ItemContent);
     db.AddInParameter(dbCommand, "VoteCount", DbType.Int32, model.VoteCount);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:14,代码来源:VoteItemsModelDal.cs

示例12: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.UserModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_maUser_ADD");
     db.AddInParameter(dbCommand, "UserId", DbType.Int32, model.UserId);
     db.AddInParameter(dbCommand, "UserName", DbType.AnsiString, model.UserName);
     db.AddInParameter(dbCommand, "UserEmail", DbType.AnsiString, model.UserEmail);
     db.AddInParameter(dbCommand, "Password", DbType.AnsiString, model.Password);
     db.AddInParameter(dbCommand, "LastLoginTime", DbType.DateTime, model.LastLoginTime);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:14,代码来源:UserModelDal.cs

示例13: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.SuitSchemeModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_ssSuitScheme_ADD");
     db.AddInParameter(dbCommand, "SchemeId", DbType.Int32, model.SchemeId);
     db.AddInParameter(dbCommand, "SchemeName", DbType.AnsiString, model.SchemeName);
     db.AddInParameter(dbCommand, "CreateTime", DbType.DateTime, model.CreateTime);
     db.AddInParameter(dbCommand, "Status", DbType.Byte, model.Status);
     db.AddInParameter(dbCommand, "SchemeDesc", DbType.AnsiString, model.SchemeDesc);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:14,代码来源:SuitSchemeModelDal.cs

示例14: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.VoteRemarkModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_voVoteRemark_ADD");
     db.AddInParameter(dbCommand, "VoteId", DbType.Int32, model.VoteId);
     db.AddInParameter(dbCommand, "UserId", DbType.Int32, model.UserId);
     db.AddInParameter(dbCommand, "Remark", DbType.AnsiString, model.Remark);
     db.AddInParameter(dbCommand, "VoteTime", DbType.DateTime, model.VoteTime);
     db.AddInParameter(dbCommand, "VoteIP", DbType.AnsiString, model.VoteIP);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:14,代码来源:VoteRemarkModelDal.cs

示例15: Add

 /// <summary>
 ///  ����һ������
 /// </summary>
 public void Add(NoName.NetShop.Model.TagsModel model)
 {
     Database db = DatabaseFactory.CreateDatabase();
     DbCommand dbCommand = db.GetStoredProcCommand("UP_cmsTags_ADD");
     db.AddInParameter(dbCommand, "CmsTagId", DbType.Int32, model.CmsTagId);
     db.AddInParameter(dbCommand, "CmsTagName", DbType.AnsiString, model.CmsTagName);
     db.AddInParameter(dbCommand, "TagBrief", DbType.AnsiString, model.TagBrief);
     db.AddInParameter(dbCommand, "DefaultContent", DbType.AnsiString, model.DefaultContent);
     db.AddInParameter(dbCommand, "TagType", DbType.AnsiString, model.TagType);
     db.AddInParameter(dbCommand, "TagParas", DbType.AnsiString, model.TagParas);
     db.ExecuteNonQuery(dbCommand);
 }
开发者ID:ViniciusConsultor,项目名称:noname-netshop,代码行数:15,代码来源:TagsModelDal.cs


注:本文中的NoName类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。