{"repo":"soul-soft/Soul.SqlBatis","free":true,"listed":false,"github":"https://github.com/soul-soft/Soul.SqlBatis","clone":"git clone https://github.com/soul-soft/Soul.SqlBatis.git","description":"soul.sqlbatis","language":"C#","stars":10,"topics":["database","expression","orm","sqlbatis"],"license":"MIT","category":"databases-storage","readme_excerpt":"Soul.SqlBatis - Flexible and simple configuration, supports LINQ+SQL, and entity change tracking. - Supports customization; refer to the source code for details. - The source code is concise and easy to understand, with around 4000 lines of code (algorithms + data structures). - The author retains all final rights, and the open-source license is MIT.Configuring DbContext Configuring Model It is recommended to provide a parameterless constructor. By default, a field named \"Id\" is considered the primary key and auto-increment column. Use [NotIdentity] to remove the auto-increment feature of a column named \"Id\". For customization, implement the IModel interface. Query Syntax List Statistics IN Query Parameterized Query Query Reuse SqlBuilder Update Query Delete Query Custom Functions 1. Custom functions are used to map to database functions. 2. Custom functions must be defined in a static class and only need to be declared without implementation. 3. The class or the function itself should have the [DbFunction] attribute. 4. Supports parameter templating with Format. In Format, braces are used as parameter placeholders. 5. The function name defaults to the final database function, but you can specify with [DbFunction(Name = \"COUNT\")]. Custom Type Mapping Method 1 1. The UseTypeMapper method is used to handle member property types, i.e., the UseTypeMapper method returns a bool indicating handling for properties of type bool. 2. No need to handle Nullable types; the framework will ","default_branch":null,"files":null,"tree":[],"storefront":"/r/soul-soft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/soul-soft/Soul.SqlBatis/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."}