Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Robin Thoni dde442b68a typo vor 7 Jahren
..
Business moved GetCrudEntityType method in extension method vor 7 Jahren
Controllers typo vor 7 Jahren
DataAccess fixed fs files order by; added fs files get single by id; moved test static file controller to 'uploadraw'; fs files controller refactor; fixed fs files edit by id vor 7 Jahren
Dbo refactor crud utils; added auth options dbo vor 7 Jahren
Hubs added dbo in notifications filters; made hub connection tracker thread safe vor 8 Jahren
Interfaces refactor crud utils; added auth options dbo vor 7 Jahren
Middlewares added luresult helper vor 7 Jahren
Properties init vor 8 Jahren
Utils users add/get/delete/login/logout/me vor 7 Jahren
Luticate2.Utils.csproj v0.6.0 vor 7 Jahren
README.md v0.6.0 vor 7 Jahren

README.md

Luticate2 API Utils

Getting started

NuGet.Config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="rthoni" value="http://nuget.rthoni.com" protocolVersion="2" />
  </packageSources>
</configuration>

project.json

{
    ...
    dependencies": {
        "Luticate2.Utils": "0.6.*",
        ...
    }
    ...
}

appsettings.json

{
    ...
    "ConnectionStrings": {
        "default":  "User ID=POSTGRES_USER;Password=POSTGRES_PASSWORD;Host=POSTGRES_HOST;Port=5432;Database=POSTGRES_DB;Pooling=true;",
        ...
    }
    ...
}

Startup.cs

public void ConfigureServices(IServiceCollection services)
{
    // ...

    // MUST be before addMvc()
    services.AddLuticateUtils(options => options.Version = "dev");

    // ...
    
    //The data access classes using YourDbContext need to be added as scoped
    services.AddDbContext<YourDbContext>(options => // Replace YourDbContext with your own database context
    {
        options.UseNpgsql(Configuration.GetConnectionString("default"));
        options.UseInternalServiceProvider(new ServiceCollection()
            .AddEntityFrameworkNpgsqlLuticate() // MUST be before AddEntityFrameworkNpgsql()
            .AddEntityFrameworkNpgsql()
            .BuildServiceProvider());
    }, ServiceLifetime.Transient);

    services.AddMvc()
        .AddLuticateUtils();
        
    // ...
}

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
    // ...

    // MUST be before useMvc()
    app.UseLuticateUtils();

    // ...
}

Usage

See WebApiUtils project for an example and starter-angular-material for a frontend.

NuGet Deployment

  • Set version in csproj

  • Build package: dotnet pack --configuration Release

  • Deploy package: nuget push -Source http://nuget.rthoni.com bin/Release/Luticate2.Utils.VERSION.nupkg