private IEnumerable <SparqlUpdateCommand> CreateDeleteEntityCommand(EntityDelete deleteEntity) { var deleteCommand = new SparqlParameterizedString(DeleteEntityCommandText); deleteCommand.SetUri("entity", deleteEntity.Entity.Uri); deleteCommand.SetUri("metaGraph", MetaGraphUri); return(GetParsedCommands(deleteCommand)); }
public async System.Threading.Tasks.Task Delete(data.InvoiceContext db, EntityDelete delete) { try { var entityToDelete = await db.Entitys.FirstOrDefaultAsync(w => w.EntityId == delete.EntityId); db.Entitys.Remove(entityToDelete); } catch (Exception e) { LogFactory.GetLogger().Log(LogLevel.Error, e); } }
// Delete Transaction Code public async System.Threading.Tasks.Task Delete(EntityDelete delete) { try { using (var db = new data.InvoiceContext()) { await Delete(db, delete); await db.SaveChangesAsync(); } } catch (Exception e) { LogFactory.GetLogger().Log(LogLevel.Error, e); } }
public void LoadClientPlugins() { LoadGlobalPlugins(); UIEntityPropertiesDialog.GetInstance(); Editing3d.GetInstance(); SelectionController.GetInstance(); AssignTextureHandler.GetInstance(); AssignColorHandler.GetInstance(); WorldPersistToXml.GetInstance(); ImportExportPrimBlender.GetInstance(); EntityDelete.GetInstance(); //SimpleCube.Register(); // SimpleCube and SimpleCone are for testing primarily //SimpleCone.Register(); FractalSplineBox.Register(); FractalSplinePrism.Register(); FractalSplineCylinder.Register(); FractalSplineTube.Register(); FractalSplineRing.Register(); FractalSplineTorus.Register(); //WorldView.GetInstance(); //plugins.Add(new DrawAxes()); FrustrumCulling.GetInstance(); ServerInfo.GetInstance(); ConnectToServerDialog.GetInstance(); MainTerrainWindow.GetInstance(); BrushEffectController.GetInstance().Register(new RaiseLower()); BrushEffectController.GetInstance().Register(new FixedHeight()); BrushEffectController.GetInstance().Register(new Flatten()); BrushEffectController.GetInstance().Register(new PaintTexture()); BrushShapeController.GetInstance().Register(new RoundBrush()); BrushShapeController.GetInstance().Register(new SquareBrush()); EditController.GetInstance(); plugins.Add(new CurrentEditSpot()); // add allowed serialization/deserialization types (security measure) OsmpXmlSerializer.GetInstance().RegisterType(typeof(Prim)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(Vector3)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(Rot)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(Vector2)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(TerrainModel)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(Color)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(MapTextureStageModel)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(FractalSplineBox)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(FractalSplineCylinder)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(FractalSplinePrim)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(FractalSplinePrism)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(FractalSplineRing)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(FractalSplineTorus)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(FractalSplineTube)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(Avatar)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(EntityGroup)); OsmpXmlSerializer.GetInstance().RegisterType(typeof(Entity)); MetaverseClient.GetInstance().worldstorage.terrainmodel.NewMap(); DumpLogfile.GetInstance(); HelpAbout.GetInstance(); KeyHandlerQuit.GetInstance(); }
public EntityOperationResult Delete(EntityDelete delete) { return(_entityService.Delete(delete)); }