Beispiel #1
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();
     }
 }
Beispiel #2
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();
     }
 }
Beispiel #3
0
 public ProfileHelper()
 {
     conn = new DBLiteConnection();
 }