Esempio n. 1
0
 public void Delete(Base.Profile e)
 {
     try
     {
         DBLiteConnection db    = new DBLiteConnection();
         String           query = String.Format(Base.Profile.DPROFILES, e.IdProfile);
         db.ExecuteNonQuery(query);
     }
     catch
     {
         throw new ExceptionIP.ProfileException();
     }
 }
Esempio n. 2
0
 public void Add(Base.Profile e)
 {
     try
     {
         DBLiteConnection db    = new DBLiteConnection();
         String           query = String.Format(Base.Profile.IPROFILES, "null", e.ProfileName, Convert.ToInt32(e.DhcpEnabled).ToString(), e.IpAddress, e.IpSubnet, e.DefaultIpGateway, e.DnsServerSearchOrder, e.MacAddress, e.SettingId, e.Caption, e.ServiceName, e.Description);
         db.ExecuteNonQuery(query);
     }
     catch
     {
         throw new ExceptionIP.ProfileException();
     }
 }