예제 #1
0
 //根据基本地址,获取一个数据库服务对象
 public static DBService Get(string uri)
 {
     if (!services.ContainsKey(uri))
     {
         services[uri] = new DBService() { Uri = uri };
     }
     return services[uri];
 }
예제 #2
0
 public void SaveModified()
 {
     DBService.Get(WebClientInfo.BaseAddress).Invoke(this, SaveModifiedToJson);
 }
예제 #3
0
 public void Delete()
 {
     DBService.Get(WebClientInfo.BaseAddress).Invoke(this, DeleteToJson);
 }