partial void Deletenormal_extends(normal_extends instance);
partial void Updatenormal_extends(normal_extends instance);
public int Update(normal_extends ne) { string sql = string.Format(@"update normal_extends set title='{0}',name='{1}',author='{2}',info='{3}',type={4},enabled={5},BaseTable='{7}' where id={6}", ne.Title, ne.Name, ne.Author, ne.Info, ne.Type, ne.Enabled, ne.Id,ne.BaseTable); return SqlHelper.ExecuteNonQuery(CommandType.Text ,sql); }
partial void Insertnormal_extends(normal_extends instance);
/// <summary> /// Insert /// </summary> /// <param name="ne"></param> /// <returns>返回ID</returns> public int Insert(normal_extends ne) { db.normal_extends.InsertOnSubmit(ne); db.SubmitChanges(); return ne.Id; }