Results for “EF Core”
17 result(s) in everything
-
Blog
EF Core Code First Migrations with DataAnnotations Attributes
Shape your SQL Server schema with DataAnnotations — Table, Column, Key, Required, MaxLength, Index, Timestamp, ConcurrencyCheck — and apply it with EF Core migrations, verified against a real database
-
Blog
How to Configure Entity Relationships using Fluent API in Entity Framework Core
Configure one-to-one, one-to-many, and many-to-many relationships with the EF Core Fluent API — HasOne/WithOne, HasForeignKey, OnDelete behaviors, and EF Core 5+ skip navigations without a join entity
-
Blog
Implement Repository Pattern with ASP.NET Core Web API
Implement the Repository Pattern with ASP.NET Core Web API on .NET 10 — EF Core 10, DTO mapping with extension methods, async CRUD operations, and the built-in OpenAPI support with Scalar.
-
Blog
Using Fluent API in EF Core Code First
EF Core Fluent API configuration in OnModelCreating — tables, columns, keys, indexes, relationships, query filters, value conversions, and when to prefer it over DataAnnotations.
-
Blog
CRUD Operations using ASP.NET Core
Build a complete CRUD API with ASP.NET Core — verified create/read/update/delete requests, the right status codes for each, automatic validation, and the path from in-memory store to EF Core.
-
Blog
Getting Started with ASP.NET Core Web API and Entity Framework
Build your first ASP.NET Core Web API on .NET 10 with Entity Framework Core — scaffold models from SQL Server, add an async controller, and test with the built-in OpenAPI document and Scalar.
-
Blog
AutoMapper in ASP.NET Core Web API — and the Modern Alternatives
AutoMapper usage in ASP.NET Core Web API, its 2025 commercial licensing change, and the modern alternatives — hand-written mapping extension methods and the Mapperly source generator.
-
Blog
Entity Framework Core Database-First Tutorial
Scaffold a DbContext and entities from an existing SQL Server database with dotnet ef dbcontext scaffold — what gets generated, re-scaffolding on schema changes, and extending via partial classes.
-
Blog
Getting Started with ASP.NET Core MVC
Create your first ASP.NET Core MVC application on .NET 10 — project structure explained, Program.cs walkthrough, default routing, and your own model, controller, and view.
-
Blog
Cascading Dropdowns with JsonResult in ASP.NET Core
Build cascading dropdowns in ASP.NET Core — a JsonResult action per level, the fetch API on the change event, safe option rendering, and a jQuery version for older projects.
-
Blog
SQL Server Stored Procedure vs User-Defined Function
Functions compute inside queries; procedures do work. The full capability matrix, parameter sniffing notes, and a mechanical decision guide with working examples of each.
-
Blog
.NET Dependency Injection Object Lifetimes
Transient, scoped, and singleton lifetimes demonstrated with GUIDs — what each means, why DbContext is scoped, and the captive-dependency trap that leaks state across requests.
-
Blog
Autocomplete in ASP.NET Core — Native datalist, fetch, and jQuery UI
Add autocomplete to ASP.NET Core pages with the native datalist element and fetch — debounced requests, capped suggestions, a custom dropdown variant, and the legacy jQuery UI hookup.
-
Blog
How to Validate MVC Models using DataAnnotation Attributes
Model validation with DataAnnotations in ASP.NET Core — the attributes that matter, verified 400 problem responses, ModelState redisplay, client-side validation, and custom attributes.
-
Blog
How to Implement Dependency Injection in .NET Core
Learn dependency injection in .NET with the built-in IoC container — register services in Program.cs, inject them through constructors, choose lifetimes, and swap implementations with one line.
-
Blog
Exception Handling using TRY/CATCH in SQL Server
TRY/CATCH with the ERROR_* functions, the transaction-safety template with XACT_ABORT, re-raising with THROW, error logging that survives rollback, and what CATCH can't catch.
-
Blog
ASP.NET Core MVC Model Binding
How ASP.NET Core turns route values, query strings, forms, and JSON bodies into typed action parameters — binding sources, complex types, collections, and the classic empty-model gotcha.