Skip to main content

Posts

Showing posts from November, 2023

Code First Approach in ASP.NET CORE MVC

 How to implement Code First Approach in ASP.NET CORE MVC:- Code First Approach is best for light-weight and smaller project in ASP.NET MVC Core, it is basically created to those developer who is not know about SQL. without SQL Server or any database package developer can create complete project. Step 1 New Project Once you have installed the Visual Studio 2019 and .Net Core 3.1 SDK, you can start building a new ASP.NET Core Application. Step 2nd:- Create a web app and From the Visual Studio select Create a new project. Select ASP.NET Core Web Application > Next. Step 3rd:- Give your project a name i.e. SampleCodeFirstExample and give your project a location where it’ll be saved and click Create. Step4th:-  Install the NuGet Packages From the Solution right click on dependency, select Manage NuGet Packages and Select the Browse tab, and then enter Microsoft.EntityFrameworkCore.SqlServer in the search box, select Latest Stable Version and Install. Step5h:- Now, install ...

Salesforce Crud Operation in separate Update and Delete page using Apex class

Salesforce Crud Operation in New Page  Create Apex class First:- public class StuEditOperation { public List<stu__c> allRec{get;set;} public stu__c coll;            // Property to store the parameter value passed from the Visualforce page     public String paramValue { get; set; }     public string value { get; set;}  public StuEditOperation()     {         allRec = [select Id,Name,fees__c from stu__c];              //   System.debug('Value is in constructor '+paramValue);            }      public void testdirect(){         system.debug(value);     }     public PageReference editstu() {          system.debug('inside method');         paramValue=ApexPages.currentPage().getParameters().get('paramValue');    ...