Just learning ASP, a lot of basic do not understand, I have a BMZL MSSQL table, a total of three fields, the idea is to pass the field value parameters, a new SQL records, but red which sentence is wrong, I don't know how to create a record as an example, consult
Public IEnumerable
{
Using (LinLongHrmEntities entities=new LinLongHrmEntities ())
{
IEnumerable
Entities. BMZL. AddRange (rowBMZL);
Var intAdd=entities. SaveChanges ();
If (intAdd==1)
{
Yield return "new complete department data";
}
The else
{
Yield return "department information new failure";
}
}
}