diff --git a/Falcon.SugarApi/BackTask/IServiceCollectionExtend.cs b/Falcon.SugarApi/BackTask/IServiceCollectionExtend.cs index 09230c6..6f9871d 100644 --- a/Falcon.SugarApi/BackTask/IServiceCollectionExtend.cs +++ b/Falcon.SugarApi/BackTask/IServiceCollectionExtend.cs @@ -3,6 +3,9 @@ using Microsoft.Extensions.Hosting; namespace Falcon.SugarApi.BackTask { + /// + /// 服务集合方法扩展 + /// public static class IServiceCollectionExtend { /// diff --git a/README.md b/README.md index 7223ab0..eb7b8b8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,33 @@ ## Falcon.SugarApi -### Swagger˵ [](/Falcon/Falcon.SugarApi/src/branch/master/Falcon.SugarApi/Swagger) -> `waggerGenOptions.AddXmlEnumEnable`Ϊöע͡ \ No newline at end of file + +### WebApiչģ [](/Falcon/Falcon.SugarApi/src/branch/master/Falcon.SugarApi/ApiDefinistions) +> `ApiControllerBase`webapi࣬ʵݿ⡢log쳣Ȼܡ +> `ApiBaseOptionController<>`лwebapi࣬`ApiControllerBase`⻹ṩɾIJ鹦ܡ + +### Swaggerչģ [](/Falcon/Falcon.SugarApi/src/branch/master/Falcon.SugarApi/Swagger) +> `waggerGenOptions.AddXmlEnumEnable`Ϊöע͡ + +### SugarDbContextչģ [](/Falcon/Falcon.SugarApi/src/branch/master/Falcon.SugarApi/DatabaseDefinitions) +> `IServiceCollection.AddSugarApiDbContext` ͨע`SugarDbContext`󣬸öͨ`SugarConnectionConfig`ݿӡ +> `DbSet`ݿ壬ֱ֧ݲѯ +> `SugarDbTables`ݿϻ࣬Լ̳иಢж`DbSet`ԣЩԶʵ +> `SugarTableBase`׼̳࣬иṩݱܣID޸ʱȡ + +### XMLлչģ [](/Falcon/Falcon.SugarApi/src/branch/master/Falcon.SugarApi/XmlSerialize) +> `IServiceCollection.AddXmlSerializeFactory`עxmlл`XmlSerializeFactory`ͨùʵһXML + +### JSONлչģ [](/Falcon/Falcon.SugarApi/src/branch/master/Falcon.SugarApi/JsonSerialize) +> `IServiceCollection.AddJsonSerializeFactory`עJsonл`JsonSerializeFactory`ͨùʵһJson + +### ַչ +> `IsNullOrEmpty()``IsNotNullOrEmpty()`ַǷΪա +> `SplitStr()`Ĭʵְ`',', '', ';', '', '.', ''`ַзָ + +### Objectչ +> `CloneTo``CloneFrom`ʵֽԸֵĿͬУΪdzơ + +### ̨BackTaskģ [](/Falcon/Falcon.SugarApi/src/branch/master/Falcon.SugarApi/BackTask) +> ̳`BackgroundLongTask`ʵһλںִ̨еĶ󣬸ͨ`IServiceCollection.AddHostedService<>'עᡣ +> `RunTimespan`ִеʱ +> д`RunAsync`ʵһ첽 +> д`OnStart`̨ʼ`OnStop`̨`OnCompleted`һִɺ`OnException`ִδ쳣 \ No newline at end of file