I want to hard delete from table in asp boilerplate framework - asp.net-boilerplate

I have a problem in permanent delete from table in asp boilerplate framework but it is not happen in my code.

Related

PrimeFaces built-in CRUD?

I'm pretty new to PrimeFaces and I'd need to setup a basic CRUD User Interface. From the showcase I can see there is a built-in Datatable parameter named editable to enable editing. I wonder if there is any built-in feature to enable also Adding and Deleting items.
If not, what would be the simplest way to achieve it ? Maybe using a Dialog component to collect the new items ?
Thanks
The simplest way to get a CRUD would be to reverse engineer it. Create your tables in a database and in Netbeans 7 or 8 (I use 8) create
Entity classes from database
JSF pages from entity classes
During the second point you can choose between Primefaces and plain JSF. If you prefer, you could also skip the first point and code the entity classes yourself instead, and tell the server to create the tables on start.
This will get a full CRUD running, complete with theming, menustructure and templating, using primefaces, facelets, beans, custom entity converters, EJB's, entities and JPA.
I like most of the generated code quite well and there is a lot to learn from it as a beginner. The result is a full page for the list and dialogs (via ui:include's) for create, view and edit.
I'd think Eclipse has something similar.

Adding JSF to existing project J2EE in Netbeans

I have created a J2EE project, Now I want to generate CRUD from MYSQL.
Here is one option that looks fine by using JSF Generating a JavaServer Faces 2.x CRUD Application from a Database.
My question is "Would this work with the existing code and navigation stuff?"
OR
Is there any other technique to generate CRUD code from MYSQL database automatically?
If you migrate to JSF, you'll have to replace all JSP pages with JSF pages; and all servlets with ManagedBeans. Navigation, and everything related to the view is handled by JSF too.
If you already have many pages and servlets coded, and your only motivation of using JSF is to generate CRUD automatically, then I suggest that you create CRUD manually using the same technology you are currently using. On the other hand, using a framework makes things much easier for web development, so it's not a bad idea to use one. Other than JSF, you could use Spring MVC.

User backend interface in Joomla?

I am wondering if there is any user back-end manager in Joomla.
I have developed a website and the homepage need to be updated time to time. What my client want is to update it by himself. But I have used a little more HTML tags and he doesn't know about HTML. So is there by chance a non professional user interface so that he can update homepage without knowing the HTML. Or any alternative if possible.
Your client can use the Joomla back-end, depending on the version here is some tutorials :
Joomla 2.5
Joomla 3

.net mvc3 mysql table without primary keys

I am new to .net and the only experience I have is with an MVC3 Entity Framework Code First project. I need to write a new web app that will query an existing legacy database. I have read only access to this MYSQL database. Most tables have no primary keys. I can connect to the DB okay. When trying to wire things up with EF and pull some data , I get errors that the the tables have no primary keys. Researching this issue on the web has brought me to the conclusion that I probably cannot use EF in this case. Given my limited experience, what would be my next best course of action? Any assistance would be appreciated.
Kindest Regards.
You could use ADO.NET, which is built into the .NET framework. It will mean that you will have to write SQL code to interact with the database.
To get ADO.NET to work with MySQL, you'll need the MySQL ADO.NET connector. More documentation on ADO.NET can be found on MSDN.
Given the read only access to a DB without primary keys, Entity Framework won't help you. I haven't tried it by myself, but I suggest you try using XSD files to create tableadapters and tables for your mysql pendants. But even if this works, without keys you won't be able to add any associations.

How do I add a column to a table (schema upgrade) and have it map to an EF code first object

I have a database that I created for a site using Entity Framework 4.1 code first. I need to add a simple property to one of my entity classes, and add a corresponding (possibly nullable) column to the database without losing any of the data in the database.
I think I can take down the site, alter the database to add the column, and redeploy website with an updated entity class, but I'm not sure that's the best way to do this schema upgrade.
Is there a standard (or just better) way of doing a schema upgrade on a DB that was created using code first?
Entity Framework Code First has a new feature in preview called Code First Migrations, which does simple schema upgrades.
You can check it out here http://blogs.msdn.com/b/adonet/archive/2011/07/27/code-first-migrations-walkthrough-of-august-2011-ctp.aspx