{{theTime}}

Search This Blog

Total Pageviews

How to add shutdown hook control c in Java

// Attach shutdown handler to catch control-c
        Runtime.getRuntime().addShutdownHook(new Thread("control c shutdown--hook") {
            @Override
            public void run() {
                  //Save and close if any object state require persistence.
            }
        });

No comments:

Generate Models from SQL Server using Entity Framework Core

To generate models from SQL Server database tables using Entity Framework (EF) in .NET, you can follow the Database-First approach with Ent...