SqlParameter[] parameters = { new SqlParameter("@RoleTypeCode",objRoleType.RoleTypeCode), new SqlParameter("@RoleTypeDesc",objRoleType.RoleTypeDesc), new SqlParameter("@OutMsg",objRoleType.OutMessage).Direction=ParameterDirection.Output // here i got error
Cannot implicitly convert type 'System.Data.ParameterDirection' to 'System.Data.SqlClient.SqlParameter'
SqlParameter outPutVal = new SqlParameter("@ID", SqlDbType.Int); outPutVal.Direction = ParameterDirection.Output;
SqlParameter[] parameters = { new SqlParameter("@RoleTypeCode",1), new SqlParameter("@RoleTypeDesc",1), new SqlParameter("@OutMsg",1) }; parameters[2].Direction=ParameterDirection.Output;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)