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