如何在我的项目中添加一个sql server字段? [英] how can I add a field of sql server in my project?

查看:99
本文介绍了如何在我的项目中添加一个sql server字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在我的表中添加了一行并在sql中存储过程,在我的asp项目中,我搜索与此表相关的类并更改它们(我在DLL中进行了更改)和BLL文件夹和构造函数..)但它没有工作,也不理解项目中的行...

如果我想在SQL中添加行并在ASP中使用我应该怎么做?

请帮帮我..

非常感谢。





< pre lang =c#> public ProductDetails( Int32 productId,字符串 productName, Int32 categoryId,字符串 categoryName,小数价格,字节折扣,字节 [] productImageTumb,字节 [] productImage, DateTime createdDate, String 描述ption,布尔 isActive, Int32 salesCount)
{
ProductId = productId;
ProductName = productName;
CategoryId = categoryId;
CategoryName = categoryName;
价格=价格;
折扣=折扣;
ProductImageTumb = productImageTumb;
ProductImage = productImage;
CreatedDate = createdDate;
描述=描述;
IsActive = isActive;
SalesCount = salesCount;
}

解决方案

请更新 DLL 和<$的参考c $ c> BLL 存在于项目的Bin文件夹中。如果 DLL BLL 中有任何更改,则需要更新参考以便将其用于.aspx页面。





谢谢


Hi,
I added a row to my table and stored procedure in sql,and in my asp project I search for classes that is related to this table and change them(I made change In DLL and BLL folder and constructor..) but It doesnt work and dont understand that row in project...
If I want to add row in sql and use in ASP how should I do that?
please help me..
thank''s a lot.


public ProductDetails(Int32 productId, String productName, Int32 categoryId, String categoryName, Decimal price, Byte discount, Byte[] productImageTumb, Byte[] productImage,DateTime createdDate,String description,Boolean isActive,Int32 salesCount)
       {
           ProductId = productId;
           ProductName = productName;
           CategoryId = categoryId;
           CategoryName = categoryName;
           Price = price;
           Discount = discount;
           ProductImageTumb = productImageTumb;
           ProductImage = productImage;
           CreatedDate = createdDate;
           Description = description;
           IsActive = isActive;
           SalesCount = salesCount;
       }

解决方案

Please update reference of DLL and BLL that exists in Bin folder of project. If there is any changes in DLL and BLL then it is necessary to update reference for using it it your .aspx page.


Thanks


这篇关于如何在我的项目中添加一个sql server字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆