{"repo":"usausa/Smart-Net-Data-Accessor","free":true,"listed":false,"github":"https://github.com/usausa/Smart-Net-Data-Accessor","clone":"git clone https://github.com/usausa/Smart-Net-Data-Accessor.git","description":"2-way/outside SQL build-time data accessor generator library","language":"C#","stars":25,"topics":["orm","dao","codegenerator","2way-sql","sql","data-access","data-access-library","dataaccess","data-mapper"],"license":"MIT","category":"databases-storage","readme_excerpt":"Smart.Data.Accessor - Source Generator based data accessor for .NET What is this? A compile-time data accessor generator . You declare partial methods with attributes and (optionally) 2-way SQL, and a Roslyn Source Generator emits the full ADO.NET implementation — connection handling, command setup, parameter binding, and row mapping — as plain, readable C#. Build-time code generation — no reflection, no IL emit, no runtime proxy. What runs is code you can read. 2-way SQL — SQL files (or inline SQL) that are valid SQL as-is, with comment-based directives for binding and dynamic conditions. Near hand-written performance — 0.95–1.13x of hand-written ADO.NET, with identical allocations; 1.4–2.2x faster than Dapper (see Benchmarks). Native AOT compatible — the generated code is fully static. Compile-time diagnostics — misuse (missing SQL file, invalid return type, unmappable entity, conflicting attributes, broken 2-way SQL, ...) fails the build with a precise SDA diagnostic instead of a runtime surprise. Getting Started (Console Application) Install Usa.Smart.Data.Accessor. Define a model and a data accessor. The accessor is a partial class marked [DataAccessor] ; each data method is a partial method marked with an execution-kind attribute ( [Execute] / [ExecuteScalar] / [Query] / [QueryFirst] / [ExecuteReader] ). Add the SQL files under a Sql folder, named {ClassName}.{MethodName}.sql (the package wires /Sql/ .sql as generator inputs automatically; the folder name can be changed","default_branch":null,"files":null,"tree":[],"storefront":"/r/usausa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/usausa/Smart-Net-Data-Accessor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}