Topics to know before start Dev works on .Net

Basics of .NET CLR. IIS. IL. CTS. Global Assembly Cache. Garbage Collector. Code Access Security. Value/Reference Types UnBoxing/Boxing .Net Version(1.0 - 4.5) Differences. OOPS Shadowing Class/Objects Interfaces Inheritance Abstract Classes. Encapsulation. Data Abstraction. Overloading/Overriding (Method/Operator). SQL Server SQL Queries/Sub Queries. Indexes/Views. Triggers. Stored Procedures. Functions. Profiler/Trace tools. Version variances (earlier versions - 2012 & 2016). Normalization/De-Normalization… Continue reading Topics to know before start Dev works on .Net


Seed database with test data using Entity Framework

Step 1: Right click on the project in solution explorer and add a class file with name = EmployeeDBContextSeeder.cs Step 2: Copy and paste the following code in EmployeeDBContextSeeder.cs file using System.Collections.Generic; using System.Data.Entity; namespace EntityFrameworkDemo { public class EmployeeDBContextSeeder : DropCreateDatabaseIfModelChanges { protected override void Seed(EmployeeDBContext context) { Department department1 = new Department() {… Continue reading Seed database with test data using Entity Framework