LSCore.Framework 1.1.3

dotnet add package LSCore.Framework --version 1.1.3
NuGet\Install-Package LSCore.Framework -Version 1.1.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LSCore.Framework" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LSCore.Framework --version 1.1.3
#r "nuget: LSCore.Framework, 1.1.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install LSCore.Framework as a Cake Addin
#addin nuget:?package=LSCore.Framework&version=1.1.3

// Install LSCore.Framework as a Cake Tool
#tool nuget:?package=LSCore.Framework&version=1.1.3

LSCore

Free and open-source .NET Api framework

A .NET libraries which makes building your API faster and easier.

Check out sample-projects to see detailed implemetations

Contribution

To contribute fork this project, branch from develop, make change and make PR onto develop branch Since there is no established protocol, your change may not be accepted. Best thing to do is create issue and discuss change there until someone create protocol for the contributiors. Code merged into main is automatically packed and pushed to nuget

GitHub last commit (branch) GitHub Release <br> Nuget Nuget <br> Nuget Nuget <br> Nuget Nuget <br> Nuget Nuget

Feature Examples

Entity Manager implementation

namespace Project.Contracts.IManagers
{
    public interface IUserManager
    {
        LSCoreListResponse<UserEntity> GetMultiple();
    }
}

namespace Project.Domain.Managers
{
    public class UserManager : LSCoreBaseManager<UserManager, UserEntity> : IUserManager
    {
        public UserManager(ILogger<UserManager> logger, ProjectDbContext dbContext)
            : base(logger, dbContext)
            {

            }

        public LSCoreListResponse<UserEntity> GetMultiple() =>
            Queryable()
            .ToLSCoreListResponse();
    }
}

Querying inside Entity Manager

// Return response as list of entities
public LSCoreListResponse<UserEntity> GetMultiple() =>
    Queryable()
    .ToLSCoreListResponse();

// Return response as Sorted And Paged list of entities
// UsersGetMultipleRequest is request class which inherits : LSCoreSortablePageableRequest<UsersSortColumnCodes.Users>
public LSCoreListResponse<UserEntity> GetMultiple(UsersGetMultipleRequest request) =>
    Queryable()
    .ToLSCoreSortedPagedResponse<UserEntity, UsersSortColumnCodes.Users>(request, UsersSortColumnCodes.UsersSortRules);

// Filter query
public LSCoreListResponse<UserEntity> GetMultiple(UsersGetMultipleRequest request) =>
    Queryable()
    .LSCoreFilter(x => x.IsActive == true || x.Type == request.Type)
    .ToLSCoreListResponse();

// Include (left join) on query
public LSCoreListResponse<UserEntity> GetMultiple(UsersGetMultipleRequest request) =>
    Queryable()
    .LSCoreIncludes(x => x.City)
    .ToLSCoreListResponse();

// Then Include on query
public LSCoreListResponse<UserEntity> GetMultiple(UsersGetMultipleRequest request)
{
    var response = new LSCoreListResponse<UserEntity>();

    var qResponse = Queryable();
    response.merge(qResponse);
    if(response.NotOk)
        return response;

    var query = qResponse.Payload!;

    var users = query
        .Include(x => x.City)
        .ThenInclude(x => x.Street);

    response.Payload = users.ToList();
    return response;
}

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.3 631 3/19/2024
1.1.2 594 2/10/2024
1.1.1 87 2/10/2024
1.1.0 93 2/9/2024
1.0.41 408 1/11/2024
1.0.40 125 1/10/2024
1.0.39 81 1/10/2024
1.0.38 209 1/7/2024
1.0.37 204 12/24/2023
1.0.36 97 12/23/2023
1.0.35 93 12/23/2023
1.0.34 90 12/23/2023
1.0.33 84 12/23/2023
1.0.32 87 12/17/2023
1.0.31 119 12/13/2023
1.0.30 81 12/13/2023
1.0.29 94 12/10/2023
1.0.28 93 12/9/2023
1.0.27 83 12/9/2023
1.0.26 94 12/9/2023
1.0.25 82 12/9/2023
1.0.24 92 12/9/2023
1.0.23 87 12/9/2023
1.0.22 117 12/3/2023
1.0.21 94 12/3/2023
1.0.20 98 12/3/2023
1.0.19 110 11/22/2023
1.0.18 77 11/16/2023
1.0.17 85 11/16/2023
1.0.16 91 11/10/2023
1.0.15 81 11/10/2023
1.0.14 79 11/10/2023
1.0.13 79 11/10/2023
1.0.12 82 11/10/2023
1.0.11 85 11/5/2023
1.0.10 79 11/5/2023
1.0.9 79 11/5/2023
1.0.8 86 11/5/2023
1.0.7 88 11/5/2023
1.0.6 88 11/5/2023
1.0.5 91 10/30/2023
1.0.4 82 10/30/2023
1.0.3 80 10/30/2023
1.0.2 80 12/16/2023
1.0.1 87 10/30/2023
1.0.1-alpha 69 10/30/2023