public static void Gg_pd_bdcx_pt_sdogeom(object sender, MoveSymbolEventArgs e) { var pt = DBManager.Instance.GetEntity <Gg_pd_bdcx_pt_sdogeom>(o => o.G3E_FID == (long)sender); pt.EntityState = pt.EntityState == EntityState.Insert?EntityState.InsertUpdate:EntityState.Update; pt.G3E_GEOMETRY = e.lineStringValue; DBManager.Instance.Update <Gg_pd_bdcx_pt_sdogeom>(pt); }
public static void Gg_pd_zfbyq_pt_sdogeom(object sender, MoveSymbolEventArgs e) { //var found = DBManager.Instance.GetEntities(TypeCache.Instance.GetTypeFromCache(typeof(DBEntity), "Common_n")).FirstOrDefault(o => o.GetValue<long>("G3E_FID") == (long)sender); //Assert.NotNull(found); var pt = DBManager.Instance.GetEntity <Gg_pd_zfbyq_pt_sdogeom>(o => o.G3E_FID == (long)sender); pt.EntityState = pt.EntityState == EntityState.Insert?EntityState.InsertUpdate:EntityState.Update; pt.G3E_GEOMETRY = e.multipointValue; DBManager.Instance.Update <Gg_pd_zfbyq_pt_sdogeom>(pt); }