Skip to content

automatic generate crud operations api for Sharkable based minimal api framework

License

Notifications You must be signed in to change notification settings

SharkableIO/Sharkable.AutoCrud.SqlSugar

Repository files navigation

Sharkable.AutoCrud

automatic generate crud operations api for Sharkable based minimal api framework

Note this is a Sharkable based extension and WIP, just for testing users

Usage

//in your sharkable based program for aot mode
builder.Services.AddShark([typeof(Program).Assembly, typeof(Sharkable.AutoCrudSqlSugar).Assembly], opt=>{
    opt.Format = Sharkable.EndpointFormat.Tolower;
    opt.ConfigureAutoCrud(s =>
    {
        s.IsAutoCloseConnection = true;
        s.DbType = DbType.Sqlite;
        s.ConnectionString = "DataSource=testsample.db";
    });
});

About

automatic generate crud operations api for Sharkable based minimal api framework

Topics

Resources

License

Stars

Watchers

Forks

Languages