Exemplo n.º 1
0
 public override void Dispose()
 {
     base.Dispose ();
     if (model != null) {
         model.Dispose ();
         model = null;
     }
     if (serviceModel != null) {
         serviceModel.Dispose ();
         serviceModel = null;
     }
 }
Exemplo n.º 2
0
 protected override void Dispose(bool disposing)
 {
     base.Dispose (disposing);
     if (model != null) {
         model.Dispose ();
         model = null;
     }
     if (serviceModel != null) {
         serviceModel.Dispose ();
         serviceModel = null;
     }
 }
Exemplo n.º 3
0
 public static ServiceModel GetCurrent()
 {
     ServiceModel m = new ServiceModel ();
     m.db = DataConnection.GetConnection ();
     return m;
 }