| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | 3 | <PropertyGroup> | |
| 4 | 4 | <TargetFramework>netstandard2.0</TargetFramework> | |
| 5 | + <Version>0.0.1</Version> | ||
| 6 | + <Description>通用查询组件</Description> | ||
| 5 | 7 | </PropertyGroup> | |
| 6 | 8 | ||
| 7 | 9 | <ItemGroup> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,97 @@ | |||
| 1 | + <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | + <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| 3 | + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
| 4 | + <PropertyGroup> | ||
| 5 | + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
| 6 | + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
| 7 | + <ProjectGuid>{DC07586E-7241-4BB5-9200-CE57A81C5E27}</ProjectGuid> | ||
| 8 | + <OutputType>Library</OutputType> | ||
| 9 | + <AppDesignerFolder>Properties</AppDesignerFolder> | ||
| 10 | + <RootNamespace>APIJSON.NET</RootNamespace> | ||
| 11 | + <AssemblyName>ApiJson.Common</AssemblyName> | ||
| 12 | + <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> | ||
| 13 | + <FileAlignment>512</FileAlignment> | ||
| 14 | + <Deterministic>true</Deterministic> | ||
| 15 | + <TargetFrameworkProfile /> | ||
| 16 | + </PropertyGroup> | ||
| 17 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
| 18 | + <DebugSymbols>true</DebugSymbols> | ||
| 19 | + <DebugType>full</DebugType> | ||
| 20 | + <Optimize>false</Optimize> | ||
| 21 | + <OutputPath>bin\Debug\</OutputPath> | ||
| 22 | + <DefineConstants>DEBUG;TRACE</DefineConstants> | ||
| 23 | + <ErrorReport>prompt</ErrorReport> | ||
| 24 | + <WarningLevel>4</WarningLevel> | ||
| 25 | + <Prefer32Bit>false</Prefer32Bit> | ||
| 26 | + </PropertyGroup> | ||
| 27 | + <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
| 28 | + <DebugType>pdbonly</DebugType> | ||
| 29 | + <Optimize>true</Optimize> | ||
| 30 | + <OutputPath>bin\Release\</OutputPath> | ||
| 31 | + <DefineConstants>TRACE</DefineConstants> | ||
| 32 | + <ErrorReport>prompt</ErrorReport> | ||
| 33 | + <WarningLevel>4</WarningLevel> | ||
| 34 | + <Prefer32Bit>false</Prefer32Bit> | ||
| 35 | + </PropertyGroup> | ||
| 36 | + <ItemGroup> | ||
| 37 | + <Reference Include="AspectCore.Extensions.Reflection, Version=1.2.0.0, Culture=neutral, PublicKeyToken=2ab7daa5defcf11f, processorArchitecture=MSIL"> | ||
| 38 | + <HintPath>packages\AspectCore.Extensions.Reflection.1.2.0\lib\net45\AspectCore.Extensions.Reflection.dll</HintPath> | ||
| 39 | + </Reference> | ||
| 40 | + <Reference Include="Microsoft.CSharp" /> | ||
| 41 | + <Reference Include="Microsoft.Extensions.DependencyInjection.Abstractions"> | ||
| 42 | + <HintPath>packages\Microsoft.Extensions.DependencyInjection.Abstractions.2.1.1\lib\netstandard2.0\Microsoft.Extensions.DependencyInjection.Abstractions.dll</HintPath> | ||
| 43 | + </Reference> | ||
| 44 | + <Reference Include="Microsoft.Extensions.Options"> | ||
| 45 | + <HintPath>packages\Microsoft.Extensions.Options.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Options.dll</HintPath> | ||
| 46 | + </Reference> | ||
| 47 | + <Reference Include="Microsoft.Extensions.Primitives"> | ||
| 48 | + <HintPath>packages\Microsoft.Extensions.Primitives.2.1.1\lib\netstandard2.0\Microsoft.Extensions.Primitives.dll</HintPath> | ||
| 49 | + </Reference> | ||
| 50 | + <Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> | ||
| 51 | + <HintPath>packages\Newtonsoft.Json.11.0.2\lib\net45\Newtonsoft.Json.dll</HintPath> | ||
| 52 | + </Reference> | ||
| 53 | + <Reference Include="SqlSugar, Version=4.9.9.10, Culture=neutral, processorArchitecture=MSIL"> | ||
| 54 | + <HintPath>packages\sqlSugar.4.9.9.10\lib\SqlSugar.dll</HintPath> | ||
| 55 | + </Reference> | ||
| 56 | + <Reference Include="System" /> | ||
| 57 | + <Reference Include="System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> | ||
| 58 | + <HintPath>packages\System.Buffers.4.4.0\lib\netstandard2.0\System.Buffers.dll</HintPath> | ||
| 59 | + </Reference> | ||
| 60 | + <Reference Include="System.ComponentModel.Annotations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | ||
| 61 | + <HintPath>packages\System.ComponentModel.Annotations.4.5.0\lib\net461\System.ComponentModel.Annotations.dll</HintPath> | ||
| 62 | + </Reference> | ||
| 63 | + <Reference Include="System.ComponentModel.DataAnnotations" /> | ||
| 64 | + <Reference Include="System.Core" /> | ||
| 65 | + <Reference Include="System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL"> | ||
| 66 | + <HintPath>packages\System.Memory.4.5.1\lib\netstandard2.0\System.Memory.dll</HintPath> | ||
| 67 | + </Reference> | ||
| 68 | + <Reference Include="System.Numerics" /> | ||
| 69 | + <Reference Include="System.Numerics.Vectors, Version=4.1.3.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | ||
| 70 | + <HintPath>packages\System.Numerics.Vectors.4.4.0\lib\net46\System.Numerics.Vectors.dll</HintPath> | ||
| 71 | + </Reference> | ||
| 72 | + <Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> | ||
| 73 | + <HintPath>packages\System.Runtime.CompilerServices.Unsafe.4.5.1\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath> | ||
| 74 | + </Reference> | ||
| 75 | + <Reference Include="System.Xml.Linq" /> | ||
| 76 | + <Reference Include="System.Data.DataSetExtensions" /> | ||
| 77 | + <Reference Include="System.Data" /> | ||
| 78 | + <Reference Include="System.Net.Http" /> | ||
| 79 | + <Reference Include="System.Xml" /> | ||
| 80 | + </ItemGroup> | ||
| 81 | + <ItemGroup> | ||
| 82 | + <Compile Include="FuncList.cs" /> | ||
| 83 | + <Compile Include="Infrastructure\StringExtensions.cs" /> | ||
| 84 | + <Compile Include="Models\DbOptions.cs" /> | ||
| 85 | + <Compile Include="Models\RoleItem.cs" /> | ||
| 86 | + <Compile Include="Properties\AssemblyInfo.cs" /> | ||
| 87 | + <Compile Include="SelectTable.cs" /> | ||
| 88 | + <Compile Include="Services\IIdentityService.cs" /> | ||
| 89 | + <Compile Include="Services\ITableMapper.cs" /> | ||
| 90 | + <Compile Include="Services\TableMapper.cs" /> | ||
| 91 | + </ItemGroup> | ||
| 92 | + <ItemGroup> | ||
| 93 | + <None Include="app.config" /> | ||
| 94 | + <None Include="packages.config" /> | ||
| 95 | + </ItemGroup> | ||
| 96 | + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
| 97 | + </Project> | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,25 @@ | |||
| 1 | + | ||
| 2 | + Microsoft Visual Studio Solution File, Format Version 12.00 | ||
| 3 | + # Visual Studio Version 16 | ||
| 4 | + VisualStudioVersion = 16.0.28803.202 | ||
| 5 | + MinimumVisualStudioVersion = 10.0.40219.1 | ||
| 6 | + Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiJson.Common_461", "ApiJson.Common_461.csproj", "{DC07586E-7241-4BB5-9200-CE57A81C5E27}" | ||
| 7 | + EndProject | ||
| 8 | + Global | ||
| 9 | + GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
| 10 | + Debug|Any CPU = Debug|Any CPU | ||
| 11 | + Release|Any CPU = Release|Any CPU | ||
| 12 | + EndGlobalSection | ||
| 13 | + GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
| 14 | + {DC07586E-7241-4BB5-9200-CE57A81C5E27}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
| 15 | + {DC07586E-7241-4BB5-9200-CE57A81C5E27}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
| 16 | + {DC07586E-7241-4BB5-9200-CE57A81C5E27}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
| 17 | + {DC07586E-7241-4BB5-9200-CE57A81C5E27}.Release|Any CPU.Build.0 = Release|Any CPU | ||
| 18 | + EndGlobalSection | ||
| 19 | + GlobalSection(SolutionProperties) = preSolution | ||
| 20 | + HideSolutionNode = FALSE | ||
| 21 | + EndGlobalSection | ||
| 22 | + GlobalSection(ExtensibilityGlobals) = postSolution | ||
| 23 | + SolutionGuid = {53F36702-3FD9-4AF5-A4C3-E3C30C943492} | ||
| 24 | + EndGlobalSection | ||
| 25 | + EndGlobal | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,14 +8,34 @@ namespace APIJSON.NET | |||
| 8 | 8 | /// </summary> | |
| 9 | 9 | public class FuncList | |
| 10 | 10 | { | |
| 11 | + /// <summary> | ||
| 12 | + /// | ||
| 13 | + /// </summary> | ||
| 14 | + /// <param name="a"></param> | ||
| 15 | + /// <param name="b"></param> | ||
| 16 | + /// <returns></returns> | ||
| 11 | 17 | public string Merge(object a, object b) | |
| 12 | 18 | { | |
| 13 | 19 | return a.ToString() + b.ToString(); | |
| 14 | 20 | } | |
| 21 | + | ||
| 22 | + /// <summary> | ||
| 23 | + /// | ||
| 24 | + /// </summary> | ||
| 25 | + /// <param name="a"></param> | ||
| 26 | + /// <param name="b"></param> | ||
| 27 | + /// <returns></returns> | ||
| 15 | 28 | public object MergeObj(object a, object b) | |
| 16 | 29 | { | |
| 17 | 30 | return new { a, b }; | |
| 18 | 31 | } | |
| 32 | + | ||
| 33 | + /// <summary> | ||
| 34 | + /// | ||
| 35 | + /// </summary> | ||
| 36 | + /// <param name="a"></param> | ||
| 37 | + /// <param name="b"></param> | ||
| 38 | + /// <returns></returns> | ||
| 19 | 39 | public bool isContain(object a, object b) | |
| 20 | 40 | { | |
| 21 | 41 | return a.ToString().Split(',').Contains(b); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,12 @@ public static bool IsValue(this object str) | |||
| 14 | 14 | { | |
| 15 | 15 | return str != null && !string.IsNullOrEmpty(str.ToString()); | |
| 16 | 16 | } | |
| 17 | + | ||
| 18 | + /// <summary> | ||
| 19 | + /// | ||
| 20 | + /// </summary> | ||
| 21 | + /// <param name="param"></param> | ||
| 22 | + /// <returns></returns> | ||
| 17 | 23 | public static string GetParamName(this string param) | |
| 18 | 24 | { | |
| 19 | 25 | return param + new Random().Next(1, 100); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,14 @@ | |||
| 3 | 3 | using SqlSugar; | |
| 4 | 4 | public class DbOptions | |
| 5 | 5 | { | |
| 6 | + /// <summary> | ||
| 7 | + /// | ||
| 8 | + /// </summary> | ||
| 6 | 9 | public DbType DbType { get; set; } | |
| 10 | + | ||
| 11 | + /// <summary> | ||
| 12 | + /// | ||
| 13 | + /// </summary> | ||
| 7 | 14 | public string ConnectionString { get; set; } | |
| 8 | 15 | } | |
| 9 | 16 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments