LSCore.Domain 1.1.3

dotnet add package LSCore.Domain --version 1.1.3
NuGet\Install-Package LSCore.Domain -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.Domain" Version="1.1.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LSCore.Domain --version 1.1.3
#r "nuget: LSCore.Domain, 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.Domain as a Cake Addin
#addin nuget:?package=LSCore.Domain&version=1.1.3

// Install LSCore.Domain as a Cake Tool
#tool nuget:?package=LSCore.Domain&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 (1)

Showing the top 1 NuGet packages that depend on LSCore.Domain:

Package Downloads
LSCore.Framework

Framewrok used to build fast scalable .NET Web APIs

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.3 722 3/19/2024
1.1.2 600 2/10/2024
1.1.1 94 2/10/2024
1.1.0 99 2/9/2024
1.0.41 413 1/11/2024
1.0.40 116 1/10/2024
1.0.39 95 1/10/2024
1.0.38 223 1/7/2024
1.0.37 224 12/24/2023
1.0.36 125 12/23/2023
1.0.35 112 12/23/2023
1.0.34 113 12/23/2023
1.0.33 105 12/23/2023
1.0.32 103 12/17/2023
1.0.31 143 12/13/2023
1.0.30 111 12/13/2023
1.0.29 128 12/10/2023
1.0.28 120 12/9/2023
1.0.27 114 12/9/2023
1.0.26 117 12/9/2023
1.0.25 106 12/9/2023
1.0.24 125 12/9/2023
1.0.23 81 12/9/2023
1.0.22 139 12/3/2023
1.0.21 117 12/3/2023
1.0.20 120 12/3/2023
1.0.19 126 11/22/2023
1.0.18 113 11/16/2023
1.0.17 106 11/16/2023
1.0.16 104 11/10/2023
1.0.15 91 11/10/2023
1.0.14 98 11/10/2023
1.0.13 89 11/10/2023
1.0.12 91 11/10/2023
1.0.11 110 11/5/2023
1.0.10 84 11/5/2023
1.0.9 102 11/5/2023
1.0.8 101 11/5/2023
1.0.7 99 11/5/2023
1.0.6 105 11/5/2023
1.0.5 119 10/30/2023
1.0.4 109 10/30/2023
1.0.3 109 10/30/2023
1.0.1 106 10/30/2023
1.0.1-alpha 82 10/30/2023