Hi. My problem is I want to add another field for insert i.e ImagePath.
But when I try to add the logic for Insert ImagePath in business logic it shows No overload for 'SP_INSERT_INTO_FONDATION_BOLT_MST' method takes 21 arguments.
'SP_INSERT_INTO_FONDATION_BOLT_MST' is the stored procedure used for insert.
Below is the business logic
public class FoundationBoltLogic
{
protected MastersDataContext context = new MastersDataContext();
public string InsertData(FoundationBoltEntities BoltEntity)
{
ISingleResult<SP_INSERT_INTO_FONDATION_BOLT_MSTResult> ds = context.SP_INSERT_INTO_FONDATION_BOLT_MST(BoltEntity.JBoltNos, BoltEntity.JBoltNos_desc, BoltEntity.JBoltDia, BoltEntity.JBoltDia_desc, BoltEntity.YieldStress, BoltEntity.YieldStress_desc, BoltEntity.PitchCircleDia, BoltEntity.PitchCircleDia_desc, BoltEntity.BoltLen, BoltEntity.BoltLen_desc, BoltEntity.ProjectedBLen, BoltEntity.ProjectedBLen_desc, BoltEntity.Cost, BoltEntity.Product_Type, BoltEntity.Bolt_Type, BoltEntity.ED_ACC, BoltEntity.UNIT_OF_MEASUREMENT, BoltEntity.IsActive, BoltEntity.CreatedBy, BoltEntity.CreatedOn, BoltEntity.ImagePath);
string strResult = "ERROR";
foreach (SP_INSERT_INTO_FONDATION_BOLT_MSTResult row in ds)
{
strResult = row.STATUS;
if (strResult == "ERROR")
{
strResult = row.ERROR_MESSAGE;
}
}
return strResult;
}
Please suggest what can I do to insert another field. I have created ImagePath field in the table. And also added in stored procedure.