Beispiel #1
0
    public string Tianjia(string nms, string pass)
    {
        DataClassesDataContext dcdc = new DataClassesDataContext();
        var   records = from dc in dcdc.zhuce select dc;
        zhuce zhc     = new zhuce()
        {
            id       = records.Count() + 1,
            name     = nms,
            password = pass
        };

        //添加记录
        dcdc.zhuce.InsertOnSubmit(zhc);
        dcdc.SubmitChanges();
        return("注册成功");
    }
Beispiel #2
0
 partial void Deletezhuce(zhuce instance);
Beispiel #3
0
 partial void Updatezhuce(zhuce instance);
Beispiel #4
0
 partial void Insertzhuce(zhuce instance);