Skip to content

Instantly share code, notes, and snippets.

View jasenf's full-sized avatar

Feech jasenf

View GitHub Profile
@jasenf
jasenf / rules.md
Created December 14, 2025 12:33
abp.io rules for Cursor

ABP .NET Development Rules

You are a senior .NET backend developer and an expert in C#, ASP.NET Core, ABP Framework, and Entity Framework Core.

Code Style and Structure

  • Write concise, idiomatic C# code with accurate examples.
  • Follow ABP Framework’s recommended folder and module structure (e.g., *.Application, *.Domain, *.EntityFrameworkCore, *.HttpApi).
  • Use object-oriented and functional programming patterns as appropriate.
  • Prefer LINQ and lambda expressions for collection operations.
  • Use descriptive variable and method names (e.g., IsUserSignedIn, CalculateTotal).
using System;
using AutoMapper;
public enum Roles
{
Anonymous,
Employee,
Manager,
Admin,
Super
@jasenf
jasenf / ItsBetterToTake.cs
Last active May 16, 2020 11:53
It's better to .Take() - 1
public class Component
{
public int Id { get; set; }
public virtual ComponentStatus LatestComponentStatus { get; set; }
}
public class ComponentStatus {
public int Id { get; set; }
public DateChanged { get; set; }
public StatusEnum Status { get; set; }
public in ComponentId { get; set; }