如何在我的项目中添加一个sql server字段? [英] how can I add a field of sql server in my project?
问题描述
我在我的表中添加了一行并在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 ofDLL
andBLL
that exists in Bin folder of project. If there is any changes inDLL
andBLL
then it is necessary to update reference for using it it your .aspx page.
Thanks
这篇关于如何在我的项目中添加一个sql server字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!