MyFramework.Web.Api 1.0.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package MyFramework.Web.Api --version 1.0.0.4                
NuGet\Install-Package MyFramework.Web.Api -Version 1.0.0.4                
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="MyFramework.Web.Api" Version="1.0.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MyFramework.Web.Api --version 1.0.0.4                
#r "nuget: MyFramework.Web.Api, 1.0.0.4"                
#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 MyFramework.Web.Api as a Cake Addin
#addin nuget:?package=MyFramework.Web.Api&version=1.0.0.4

// Install MyFramework.Web.Api as a Cake Tool
#tool nuget:?package=MyFramework.Web.Api&version=1.0.0.4                

MyFramework.Web.Api 文档说明

介绍

基于web项目的部分功能的封装

软件架构

安装教程

Install-Package MyFramework.Web.Api

功能说明
1.ApiControllerBase(webapi基类)
基类使用示例
using Microsoft.AspNetCore.Mvc;
using MyFramework.Web.Api.Controllers;
using System.Collections.Generic;

namespace MyFramework.Web.Api.Sample.Controllers
{
    /// <summary>
    /// ApiControllerBase 示例
    /// </summary>
    [Route("api/[controller]/[action]")]
    public class ApiControllerBaseSampleController : ApiControllerBase
    {
        /// <summary>
        /// 
        /// </summary>
        public ApiControllerBaseSampleController()
        {
            TableName = "t_tablename";
            PrimaryKeys = new List<string>() { "id" };
        }
    }
}

功能调用示例
    //获取数据(分页集合)
    Post http://localhost:5000/api/ApiControllerBaseSample/GetListByPage
    //参数
    Body 
        {
            "page":1,
            "limit":10,
            "data":{
                "AndOr":"and",
                "Conditions":[
                    {
                        "Entity":"",
                        "Property":"id",
                        "Type":"string",
                        "Operator":"=",
                        "Value":"1"
                    }
                ],
                "ConditionGroup":[

                ]
            }
        }
    //返回值
    ......

    //保存数据
    Post http://localhost:5000/api/ApiControllerBaseSample/SaveData
    //参数
    Body 
        {
            "字段":"值"
        }
    //返回值
    ......

    //删除数据()
    Post http://localhost:5000/api/ApiControllerBaseSample/Delete
    //参数
    Body 
        ["value1","value2"]
    //返回值
    ......
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.2 is compatible.  netcoreapp3.0 was computed.  netcoreapp3.1 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.0.0.6 1,193 11/20/2019
1.0.0.4 1,038 11/14/2019
1.0.0.3 1,059 10/24/2019
1.0.0.2 1,047 10/24/2019
1.0.0.1 683 8/21/2019