From 1428b72599584405c8a978752d6e71fd20ddcb87 Mon Sep 17 00:00:00 2001 From: zdrawku Date: Fri, 12 Dec 2025 10:17:39 +0200 Subject: [PATCH] Readme update --- LICENSE | 21 +++++++++++++++++++++ ReadMe.md | 23 +---------------------- 2 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1a1ced3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 INFRAGISTICS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/ReadMe.md b/ReadMe.md index 3793480..3745c37 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -4,17 +4,12 @@ A .NET 8, .NET 9 library for dynamic, strongly-typed query building and executio [![NuGet](https://img.shields.io/nuget/v/Infragistics.QueryBuilder.Executor.svg)](https://www.nuget.org/packages/Infragistics.QueryBuilder.Executor/) ---- - ## Installation Install via NuGet Package Manager: `dotnet add package Infragistics.QueryBuilder.Executor` - ---- - ## Features - **Dynamic Query Execution**: Compose and execute queries at runtime using a flexible object model. @@ -23,8 +18,6 @@ Install via NuGet Package Manager: - **SQL Generation**: Generate SQL from the query model for diagnostics or analysis. - **ASP.NET Core Integration**: Easily expose query endpoints. ---- - ## Getting Started ### 1. Register the QueryBuilder Service @@ -33,32 +26,24 @@ In your `Startup.cs` or Program configuration: `services.AddQueryBuilder();` - ### 2. Expose a Query Endpoint `app.UseEndpoints(endpoints => { endpoints.UseQueryBuilder("/api/query"); });` - ### 3. Example Query Payload `{ "Entity": "Users", "ReturnFields": ["Id", "Name"], "Operator": "And", "FilteringOperands": [ { "FieldName": "IsActive", "Condition": { "Name": "equals" }, "SearchVal": true } ] }` - ### 4. Generate SQL (Optional) `var sql = SqlGenerator.GenerateSql(query);` - ---- - ## Query Model - **Query**: Describes the entity, fields, logical operator, and filters. - **QueryFilter**: Represents a filter or group of filters. - **QueryFilterCondition**: Specifies the comparison type (e.g., equals, contains). ---- - ## Dependencies - .NET 8 or .NET 9 @@ -66,12 +51,6 @@ In your `Startup.cs` or Program configuration: - AutoMapper - builder.Services.AddControllers().AddNewtonsoftJson(o => o.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore) for working SwaggerUI ---- - ## License -This package is provided as-is for public and demonstration use. - ---- - -*For more details, see the source code or contact the maintainers.* +[MIT](/LICENSE).