Пример #1
0
 public void regperfil(Guid idus)
 {
     DataClasses1DataContext db = new DataClasses1DataContext();
     perfil perfl = new perfil()
     {
         infraccion = 0,
         karma = 0,
         beneado = "false",
         UserId = idus
     };
     db.perfil.InsertOnSubmit(perfl);
     db.SubmitChanges();
 }
Пример #2
0
 public void editardatos(perfil per)
 {
     GridDemo grid = new GridDemo();
     if(grid.grid.AjaxCallBackMode == AjaxCallBackMode.EditRow){
         DataClasses1DataContext db = new DataClasses1DataContext();
         perfil update = db.perfil.Where(a => a.idPerfil == per.idPerfil).First<perfil>();
         update.idPerfil = per.idPerfil;
         update.infraccion = per.infraccion;
         update.karma = per.karma;
         update.beneado = per.beneado;
         db.SubmitChanges();
     }
 }
 partial void Deleteperfil(perfil instance);
 partial void Updateperfil(perfil instance);
 partial void Insertperfil(perfil instance);
		private void detach_perfil(perfil entity)
		{
			this.SendPropertyChanging();
			entity.aspnet_Users = null;
		}