├── .dockerignore
├── .gitattributes
├── .gitignore
├── .vs
├── ProjectEvaluation
│ ├── chatgptwriteproject.metadata.v5.2
│ ├── chatgptwriteproject.projects.v5.2
│ ├── efcore开发模板.metadata.v5.2
│ ├── efcore开发模板.metadata.v6.1
│ ├── efcore开发模板.projects.v5.2
│ └── efcore开发模板.projects.v6.1
├── chatgptwriteproject
│ └── FileContentIndex
│ │ ├── 4bf11d2b-44ab-4b75-aea4-ffcd695276db.vsidx
│ │ ├── 79b9260d-e5f6-40d1-8fa9-0a240061f98c.vsidx
│ │ ├── b6c1578a-dbbe-4dfa-85a3-df3fbf570913.vsidx
│ │ ├── c4ab6445-363d-44b8-89ae-3e5bbbdee3d6.vsidx
│ │ └── read.lock
├── efcore-template
│ ├── DesignTimeBuild
│ │ └── .dtbcache.v2
│ ├── config
│ │ └── applicationhost.config
│ └── v17
│ │ ├── .futdcache.v2
│ │ └── .suo
└── efcore开发模板
│ ├── DesignTimeBuild
│ └── .dtbcache.v2
│ ├── FileContentIndex
│ ├── 4c1d815d-a3c4-4549-8ac6-ee9f6fd19fd0.vsidx
│ ├── 5e881f66-3f98-4c71-827d-8cac41b858be.vsidx
│ ├── 62cf10e2-c775-4d9c-8a60-b0e7a50ede24.vsidx
│ └── read.lock
│ └── v17
│ ├── .futdcache.v2
│ └── .suo
├── Common.Cache
├── CacheExtentions.cs
├── Common.Cache.csproj
└── Options
│ ├── CacheOptions.cs
│ └── CacheType.cs
├── Common.DapperDal
├── Common.DapperDal.csproj
├── DalBaseOfTEntity.Count.cs
├── DalBaseOfTEntity.Delete.cs
├── DalBaseOfTEntity.Execute.OtherConn.cs
├── DalBaseOfTEntity.Execute.cs
├── DalBaseOfTEntity.ExecuteScalar.OtherConn.cs
├── DalBaseOfTEntity.ExecuteScalar.cs
├── DalBaseOfTEntity.Exsit.cs
├── DalBaseOfTEntity.Get.cs
├── DalBaseOfTEntity.GetFirst.cs
├── DalBaseOfTEntity.GetList.cs
├── DalBaseOfTEntity.GetListPaged.cs
├── DalBaseOfTEntity.GetSet.cs
├── DalBaseOfTEntity.GetTop.cs
├── DalBaseOfTEntity.Insert.cs
├── DalBaseOfTEntity.Query.OtherConn.cs
├── DalBaseOfTEntity.Query.cs
├── DalBaseOfTEntity.QueryDataSet.OtherConn.cs
├── DalBaseOfTEntity.QueryDataSet.cs
├── DalBaseOfTEntity.QueryFirst.OtherConn.cs
├── DalBaseOfTEntity.QueryFirst.cs
├── DalBaseOfTEntity.QueryMultiple.OtherConn.cs
├── DalBaseOfTEntity.QueryMultiple.cs
├── DalBaseOfTEntity.SoftDelete.cs
├── DalBaseOfTEntity.SwitchActive.cs
├── DalBaseOfTEntity.Update.cs
├── DalBaseOfTEntity.cs
├── DalConfiguration.cs
├── DalOptions.cs
├── Expressions
│ ├── ExpressionUtility.cs
│ ├── PredicateBuilder.cs
│ ├── PredicateExtensions.cs
│ ├── QueryBuilder.cs
│ ├── QueryFunctions.cs
│ ├── SortDirection.cs
│ └── SortingExtensions.cs
├── Implementor
│ └── DalImplementor.cs
├── Mapper
│ ├── AutoClassMapper.cs
│ ├── AutoEntityMapper.cs
│ ├── ClassMapper.cs
│ ├── PluralizedAutoClassMapper.cs
│ └── PropertyMap.cs
├── Predicate
│ ├── GetMultiplePredicate.cs
│ ├── GetMultipleResult.cs
│ └── Predicates.cs
├── Sql
│ ├── SqlDialectBase.cs
│ ├── SqlGenerator.cs
│ └── SqlServerDialect.cs
└── Utils
│ ├── ExpressionExtensions.cs
│ └── ReflectionHelper.cs
├── Common.DistributedId
├── AsyncHelper.cs
├── Common.DistributedId.csproj
├── DistributedId.cs
├── DistributedIdExtentions.cs
├── DistributedIdOptions.cs
├── Guid
│ └── GuidHelper.cs
├── IDistributedId.cs
└── Snowflake
│ ├── DisposableAction.cs
│ ├── IdWorker.cs
│ ├── InvalidSystemClock.cs
│ └── TImeExtensions.cs
├── Common.DistributedLock.Abstractions
├── Common.DistributedLock.Abstractions.csproj
├── DistributedLockOptions.cs
├── IDistributedLock.cs
└── LockType.cs
├── Common.DistributedLock.InMemory
├── Common.DistributedLock.InMemory.csproj
└── InMemoryDistributedLock.cs
├── Common.DistributedLock.Redis
├── Common.DistributedLock.Redis.csproj
└── RedisDistributedLock.cs
├── Common.Es
├── Common.Es.csproj
└── Elasticsearchs
│ ├── Es.Context
│ ├── ArticleEsContext.cs
│ └── EsContext.cs
│ ├── Es.Foundation
│ ├── EsBase.cs
│ ├── EsClientExtension.cs
│ ├── EsConfig.cs
│ ├── EsOption.cs
│ └── IEsBase.cs
│ ├── Es.Parameters
│ └── EsParameter.cs
│ └── Es.Response
│ ├── EsData.cs
│ └── EsResult.cs
├── Common.Grpc
├── Common.Grpc.csproj
└── GrpcPool
│ ├── GrpcClientPool.cs
│ └── IGrpcClientFactory.cs
├── Common.MessageMiddleware
├── Common.MessageMiddleware.csproj
├── Extensions
│ └── ProgramExtensions.cs
├── Factory
│ ├── IMQFactory.cs
│ ├── MQConfig.cs
│ ├── MQFactory.cs
│ ├── MQFactoryBuilder.cs
│ └── MQType.cs
├── IMQPublisher.cs
├── Kafka
│ ├── BaseOptions.cs
│ ├── Consumer
│ │ ├── ConsumerOptions.cs
│ │ └── KafkaListenerHostService.cs
│ ├── KafkaExtensions.cs
│ └── Producers
│ │ ├── IKafkaProduce.cs
│ │ ├── KafkaProduce.cs
│ │ ├── KafkaPublisher.cs
│ │ └── ProducerOptions.cs
├── ListenerConfig.cs
├── MQListener.cs
├── Properties
│ └── launchSettings.json
├── RabbitMQ
│ ├── IRabbitMQConnection.cs
│ ├── MQListenerHostService.cs
│ ├── MQPublisher.cs
│ ├── RabbitMQChannelPooledObjectPolicy.cs
│ ├── RabbitMQConnection.cs
│ └── RabbitMQSetting.cs
├── ServiceCollectionExtensions.cs
└── configs
│ ├── mqsettings.json
│ └── rabbitmq.json
├── Common.MongoDb
├── Common.MongoDb.csproj
├── MongoDbOptions.cs
├── MongoDbService.cs
└── MongoDbServiceCoolectionExtensions.cs
├── Common.Redis
├── Common.Redis.csproj
├── Configuration
│ ├── RedisConfiguration.cs
│ ├── RedisHost.cs
│ └── ServerEnumerationStrategy.cs
├── CsRedisCache.cs
├── Extensions
│ ├── DependencyInjectionExtensions.cs
│ └── LinqExtensions.cs
├── GeneratorID.cs
├── IRedisCache.cs
├── ISerializer.cs
├── PooledConnectionMultiplexer.cs
├── RedisCache.cs
├── Serializer
│ ├── BsonSerializer.cs
│ ├── JsonSerializer.cs
│ ├── MsgPackSerializer.cs
│ ├── ProtobufSerializer.cs
│ ├── SerializerEnum.cs
│ └── SerializerHelper.cs
└── ServerIteration
│ ├── ServerEnumerable.cs
│ └── ServerIteratorFactory.cs
├── Common.RepositoryComponent
├── BaseRepo
│ ├── IReadRepository.cs
│ ├── IWriteRepository.cs
│ ├── ReadRepository.cs
│ ├── ReadRepositoryBase.cs
│ ├── WriteRepository.cs
│ └── WriteRepositoryBase.cs
├── Common.RepositoryComponent.csproj
├── DbFactories
│ └── DbFactory.cs
├── Extensions
│ └── LinqExtensions.cs
└── Page
│ ├── PaginatedList.cs
│ ├── PaginatedListBase.cs
│ ├── PaginatedOptions.cs
│ └── RequestPageBase.cs
├── Common.RestSharpClient
├── ApiClient.cs
├── ApiException.cs
├── ClientUtils.cs
├── Common.RestSharpClient.csproj
├── Configuration.cs
├── ExceptionFactory.cs
├── GateApiException.cs
├── GlobalConfiguration.cs
├── HttpMethod.cs
├── IApiAccessor.cs
├── IApiResponse.cs
├── IAsynchronousClient.cs
├── IReadableConfiguration.cs
├── ISynchronousClient.cs
├── Multimap.cs
├── OpenAPIDateConverter.cs
└── RequestOptions.cs
├── Common.SqlSugar
├── Common.SqlSugar.csproj
├── Extensions
│ ├── PagedQueryableExtensions.cs
│ └── SqlSugarServiceCollectionExtensions.cs
├── Internal
│ ├── SqlProfiler.cs
│ └── SqlSugarPagedList.cs
└── Repositories
│ ├── ISqlSugarRepository.cs
│ └── SqlSugarRepository.cs
├── Common.Util
├── Common.Util.csproj
├── CryptionHelper.cs
├── Elasticsearchs
│ └── Es.Foundation
│ │ ├── EsBase.cs
│ │ ├── EsClientExtension.cs
│ │ ├── EsConfig.cs
│ │ ├── EsOption.cs
│ │ └── IEsBase.cs
├── EnumHelper.cs
├── Exceptions
│ ├── CommonException.cs
│ ├── CommonExceptionFilter.cs
│ ├── ParamsErrorException.cs
│ └── SystemErrorException.cs
├── Jwt
│ ├── JwtExtensions.cs
│ └── JwtOptions.cs
└── Primitives
│ ├── AjaxResult.cs
│ ├── ShowException.cs
│ └── TypeExtentions.cs
├── ConsumerClient
├── ConsumerClient.csproj
├── OrderConsumer.cs
├── Program.cs
├── Properties
│ └── launchSettings.json
├── appsettings.Development.json
└── appsettings.json
├── MicroService
├── Catalog.Service
│ ├── Catalogs.Domain
│ │ ├── Catalogs.Domain.csproj
│ │ ├── Catalogs
│ │ │ └── Catalog.cs
│ │ ├── Dtos
│ │ │ └── ProductDto.cs
│ │ ├── Events
│ │ │ ├── CreateOrderEvent.cs
│ │ │ ├── IDomainEvent.cs
│ │ │ ├── IEntity.cs
│ │ │ └── ReceiveCreateOrderEvent.cs
│ │ └── OutBoxMessage
│ │ │ ├── OutBoxMessage.cs
│ │ │ └── OutBoxMessageConsumer.cs
│ ├── Catalogs.Infrastructure
│ │ ├── ApplicationStartup.cs
│ │ ├── Catalogs.Infrastructure.csproj
│ │ └── Database
│ │ │ ├── CatalogContext.cs
│ │ │ └── CatalogContextSeed.cs
│ └── Catalogs.WebApi
│ │ ├── BackgroudServices
│ │ └── InitProductListToRedisService.cs
│ │ ├── Catalogs.WebApi.csproj
│ │ ├── Controllers
│ │ └── CatalogController.cs
│ │ ├── Handler
│ │ └── CreateOrderHandler.cs
│ │ ├── Program.cs
│ │ ├── Properties
│ │ └── launchSettings.json
│ │ ├── ViewModel
│ │ └── PaginatedViewModel.cs
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ └── wwwroot
│ │ └── Img
│ │ ├── R.jpg
│ │ ├── dog.png
│ │ └── phone.jpg
├── Customer.Service
│ ├── Custoemr.domain
│ │ ├── Customers.Domain.csproj
│ │ ├── Customers
│ │ │ ├── Customer.cs
│ │ │ ├── ICustomerRepository.cs
│ │ │ └── MissingCustomer.cs
│ │ └── Seedwork
│ │ │ └── IUnitOfWork.cs
│ ├── Customer.Infrastructure
│ │ ├── ApplicationStartup.cs
│ │ ├── Customers.Infrastructure.csproj
│ │ ├── Database
│ │ │ └── CustomerContext.cs
│ │ └── Domain
│ │ │ ├── Customers
│ │ │ └── CustomerRepository.cs
│ │ │ └── UnitOfWork.cs
│ └── Customer.WebApi
│ │ ├── Controllers
│ │ └── TokenController.cs
│ │ ├── Customers.Center.csproj
│ │ ├── GrpcService
│ │ └── GrpcCustomerService.cs
│ │ ├── Program.cs
│ │ ├── Properties
│ │ └── launchSettings.json
│ │ ├── Service
│ │ ├── CustomerService.cs
│ │ ├── Dtos
│ │ │ ├── AddCustomerDto.cs
│ │ │ ├── LoginDto.cs
│ │ │ └── TokenDto.cs
│ │ └── ICustomerService.cs
│ │ ├── appsettings.Development.json
│ │ └── appsettings.json
├── GrpcService
│ └── GrpcService
│ │ ├── CustomerService
│ │ └── IGrpcCustomerService.cs
│ │ ├── GrpcService.csproj
│ │ └── OrderService
│ │ └── IGrpcOrderService.cs
├── Message.Service
│ └── Message.WebApi
│ │ ├── Controllers
│ │ └── WeatherForecastController.cs
│ │ ├── Message.WebApi.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ └── launchSettings.json
│ │ ├── WeatherForecast.cs
│ │ ├── appsettings.Development.json
│ │ └── appsettings.json
├── Ordering.Service
│ ├── Ordering.Domain
│ │ ├── Dtos
│ │ │ ├── CatalogCopy.cs
│ │ │ ├── CreateOrderDto.cs
│ │ │ └── OrderDetailDto.cs
│ │ ├── Enums
│ │ │ └── OrderStatus.cs
│ │ ├── Events
│ │ │ ├── CreateOrderEvent.cs
│ │ │ ├── IDomainEvent.cs
│ │ │ └── IEntity.cs
│ │ ├── Ordering.Domain.csproj
│ │ ├── Orders
│ │ │ └── Order.cs
│ │ └── OutBoxMessages
│ │ │ └── OutBoxMessage.cs
│ ├── Ordering.IGrain
│ │ ├── IOrderGrain.cs
│ │ └── Ordering.IGrain.csproj
│ ├── Ordering.Infrastructure
│ │ ├── ApplicationStartup.cs
│ │ ├── Database
│ │ │ └── OrderDbContext.cs
│ │ ├── Extensions
│ │ │ └── OrderExtensions.cs
│ │ ├── Ordering.Infrastructure.csproj
│ │ ├── OutBoxMessageInterceptor
│ │ │ └── CreateOrderInterceptor.cs
│ │ └── Repositories
│ │ │ ├── Orders
│ │ │ ├── IReadOrderRepository.cs
│ │ │ ├── IWriteOrderRepository.cs
│ │ │ ├── OrderReadRepository.cs
│ │ │ └── OrderWriteRepository.cs
│ │ │ └── OutBox
│ │ │ ├── IReadOutBoxMessageRepository.cs
│ │ │ ├── IWriteOutBoxMessageRepository.cs
│ │ │ ├── ReadOutBoxMessageRepository.cs
│ │ │ └── WriteOutBoxMessageRepository.cs
│ └── Ordering.WebApi
│ │ ├── BackServices
│ │ └── OubtBox
│ │ │ └── CreateOrderbService.cs
│ │ ├── Const.cs
│ │ ├── Controllers
│ │ └── OrderController.cs
│ │ ├── Filters
│ │ └── AsyncAuthorizationFilterAttribute.cs
│ │ ├── GrpcService
│ │ └── GrpcOrderService.cs
│ │ ├── Ordering.WebApi.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ └── launchSettings.json
│ │ ├── Services
│ │ ├── Grains
│ │ │ └── OrderGrain.cs
│ │ └── Orders
│ │ │ ├── IOrderService.cs
│ │ │ └── OrderService.cs
│ │ ├── appsettings.Development.json
│ │ ├── appsettings.json
│ │ └── sql
│ │ └── order.service.sql
└── Paying.Service
│ ├── Paying.Domain
│ └── Paying.Domain.csproj
│ ├── Paying.Infrastructure
│ └── Paying.Infrastructure.csproj
│ └── Paying.WebApi
│ ├── BackServices
│ └── PayTimeoutService.cs
│ ├── Const.cs
│ ├── Controllers
│ └── PayController.cs
│ ├── Database
│ ├── Payment.cs
│ └── PaymentContext.cs
│ ├── Dtos
│ └── CreateOrderEvent.cs
│ ├── Paying.WebApi.csproj
│ ├── Program.cs
│ ├── Properties
│ └── launchSettings.json
│ ├── Services
│ ├── IPayingService.cs
│ └── PayingService.cs
│ ├── appsettings.Development.json
│ └── appsettings.json
├── Test
├── GrpcHttpService
│ ├── JwtAuthApp.Server
│ │ ├── Authentication
│ │ │ └── JwtTokenService.cs
│ │ ├── Controllers
│ │ │ └── WeatherForecastController.cs
│ │ ├── GrpcService
│ │ │ └── AccountService.cs
│ │ ├── JwtAuthApp.Server.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── WeatherForecast.cs
│ │ ├── appsettings.Development.json
│ │ └── appsettings.json
│ ├── Login.Client
│ │ ├── Controllers
│ │ │ └── LoginController.cs
│ │ ├── GrpcClient
│ │ │ └── LoginClientFactory.cs
│ │ ├── HtppClient
│ │ │ └── WeatherforecastApi.cs
│ │ ├── Login.Client.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── WeatherForecast.cs
│ │ ├── appsettings.Development.json
│ │ └── appsettings.json
│ ├── Login.Client002
│ │ ├── Controllers
│ │ │ └── LoginController.cs
│ │ ├── GrpcClient
│ │ │ └── LoginClientFactory.cs
│ │ ├── Login.Client002.csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── appsettings.Development.json
│ │ └── appsettings.json
│ └── MicroService.Shared
│ │ ├── GrpcPool
│ │ ├── GrpcClientPool.cs
│ │ └── IGrpcClientFactory.cs
│ │ ├── IAccountService.cs
│ │ └── MicroService.Shared.csproj
└── UnitTest
│ ├── GlobalUsings.cs
│ ├── UnitTest.csproj
│ └── UnitTest1.cs
├── WebClient
├── Program.cs
├── Properties
│ └── launchSettings.json
├── WebClient.csproj
├── appsettings.Development.json
├── appsettings.json
└── wwwroot
│ ├── img
│ └── Login.png
│ ├── index.html
│ ├── login.html
│ ├── order.html
│ ├── orderDetail.html
│ └── product.html
├── WebSocket.Server
├── Extensions
│ └── WebSocketExtensions.cs
├── Handler
│ └── WebSocketHandler.cs
├── Manager
│ └── WebSocketConnectionManager.cs
├── Middleware
│ └── WebSocketManagerMiddleware.cs
├── Program.cs
├── Properties
│ └── launchSettings.json
├── Services
│ ├── ProductListHandler.cs
│ └── TimeHandler.cs
├── Startup.cs
├── WebScoket.Server.csproj
├── appsettings.Development.json
└── appsettings.json
├── efcore-template.sln
├── project
├── App_Data
│ ├── dbo.Customer.sql
│ └── dbo.Product.sql
├── Attributes
│ ├── FormatResponseAttribute.cs
│ └── NoFormatResponseAttribute.cs
├── Context
│ └── ApplicationDbContext.cs
├── Controllers
│ ├── CustomerController.cs
│ ├── HomeController.cs
│ └── ProductController.cs
├── Dapper
│ └── CustomerDal.cs
├── Dtos
│ ├── Customer
│ │ └── CreateCustomerDto.cs
│ └── Product
│ │ ├── CreateProductDto.cs
│ │ └── PageProductDto.cs
├── Elasticsearchs
│ └── Product
│ │ ├── Parameters
│ │ └── EsProductParameter.cs
│ │ └── Search
│ │ └── EsProductContext.cs
├── Extensions
│ ├── DatabaseExtensions.cs
│ ├── DistributedLockExtentions.cs
│ ├── ElasticSearchExtensions.cs
│ ├── MqExtensions.cs
│ ├── RedisExtensions.cs
│ └── WatchDogExtensions.cs
├── Filters
│ ├── BaseActionFilter.cs
│ ├── FilterExtensions.cs
│ ├── GlobalExceptionFilter.cs
│ └── ValidFilter.cs
├── Models
│ ├── Common
│ │ ├── IEntity.cs
│ │ └── MethodType.cs
│ ├── Customer.cs
│ ├── CustomerProfile.cs
│ ├── Product.cs
│ └── ProductProfile.cs
├── Options
│ └── SlipExpirationRateLimitOptions.cs
├── Program.cs
├── Properties
│ └── launchSettings.json
├── Repositories
│ ├── IReadProductRepository.cs
│ ├── IWriteProductRepository.cs
│ ├── ProductReadRepository.cs
│ └── ProductWriteRepository.cs
├── SeedWork
│ └── DatabaseStartup.cs
├── Services
│ ├── Customer
│ │ ├── CustomerService.cs
│ │ └── ICustomerService.cs
│ ├── IProductService.cs
│ └── ProductService.cs
├── Utility
│ ├── BaseController
│ │ └── AbsEfWorkController.cs
│ └── Helper
│ │ ├── CacheHelper.cs
│ │ └── TimestampHelper.cs
├── appsettings.Development.json
├── appsettings.json
├── obj
│ ├── Debug
│ │ └── net7.0
│ │ │ ├── .NETCoreApp,Version=v7.0.AssemblyAttributes.cs
│ │ │ ├── project.GlobalUsings.g.cs
│ │ │ └── project.assets.cache
│ ├── project.assets.json
│ ├── project.csproj.nuget.dgspec.json
│ ├── project.csproj.nuget.g.props
│ └── project.csproj.nuget.g.targets
├── project.csproj
├── watchlogs-log.db
└── watchlogs.db
├── readme.md
├── readmeimg
├── Snipaste_2024-01-12_13-22-07.png
├── Snipaste_2024-01-12_13-22-35.png
├── Snipaste_2024-01-12_13-27-45.png
├── image-1.png
├── image-2.png
├── image-3.png
├── image-4.png
├── image-5.png
├── image-6.png
├── image-7.png
└── image.png
└── 用到的docker.txt
/.dockerignore:
--------------------------------------------------------------------------------
1 | **/.classpath
2 | **/.dockerignore
3 | **/.env
4 | **/.git
5 | **/.gitignore
6 | **/.project
7 | **/.settings
8 | **/.toolstarget
9 | **/.vs
10 | **/.vscode
11 | **/*.*proj.user
12 | **/*.dbmdl
13 | **/*.jfm
14 | **/azds.yaml
15 | **/bin
16 | **/charts
17 | **/docker-compose*
18 | **/Dockerfile*
19 | **/node_modules
20 | **/npm-debug.log
21 | **/obj
22 | **/secrets.dev.yaml
23 | **/values.dev.yaml
24 | LICENSE
25 | README.md
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/.vs/ProjectEvaluation/chatgptwriteproject.metadata.v5.2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/ProjectEvaluation/chatgptwriteproject.metadata.v5.2
--------------------------------------------------------------------------------
/.vs/ProjectEvaluation/chatgptwriteproject.projects.v5.2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/ProjectEvaluation/chatgptwriteproject.projects.v5.2
--------------------------------------------------------------------------------
/.vs/ProjectEvaluation/efcore开发模板.metadata.v5.2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/ProjectEvaluation/efcore开发模板.metadata.v5.2
--------------------------------------------------------------------------------
/.vs/ProjectEvaluation/efcore开发模板.metadata.v6.1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/ProjectEvaluation/efcore开发模板.metadata.v6.1
--------------------------------------------------------------------------------
/.vs/ProjectEvaluation/efcore开发模板.projects.v5.2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/ProjectEvaluation/efcore开发模板.projects.v5.2
--------------------------------------------------------------------------------
/.vs/ProjectEvaluation/efcore开发模板.projects.v6.1:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/ProjectEvaluation/efcore开发模板.projects.v6.1
--------------------------------------------------------------------------------
/.vs/chatgptwriteproject/FileContentIndex/4bf11d2b-44ab-4b75-aea4-ffcd695276db.vsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/chatgptwriteproject/FileContentIndex/4bf11d2b-44ab-4b75-aea4-ffcd695276db.vsidx
--------------------------------------------------------------------------------
/.vs/chatgptwriteproject/FileContentIndex/79b9260d-e5f6-40d1-8fa9-0a240061f98c.vsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/chatgptwriteproject/FileContentIndex/79b9260d-e5f6-40d1-8fa9-0a240061f98c.vsidx
--------------------------------------------------------------------------------
/.vs/chatgptwriteproject/FileContentIndex/b6c1578a-dbbe-4dfa-85a3-df3fbf570913.vsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/chatgptwriteproject/FileContentIndex/b6c1578a-dbbe-4dfa-85a3-df3fbf570913.vsidx
--------------------------------------------------------------------------------
/.vs/chatgptwriteproject/FileContentIndex/c4ab6445-363d-44b8-89ae-3e5bbbdee3d6.vsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/chatgptwriteproject/FileContentIndex/c4ab6445-363d-44b8-89ae-3e5bbbdee3d6.vsidx
--------------------------------------------------------------------------------
/.vs/chatgptwriteproject/FileContentIndex/read.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/chatgptwriteproject/FileContentIndex/read.lock
--------------------------------------------------------------------------------
/.vs/efcore-template/DesignTimeBuild/.dtbcache.v2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore-template/DesignTimeBuild/.dtbcache.v2
--------------------------------------------------------------------------------
/.vs/efcore-template/v17/.futdcache.v2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore-template/v17/.futdcache.v2
--------------------------------------------------------------------------------
/.vs/efcore-template/v17/.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore-template/v17/.suo
--------------------------------------------------------------------------------
/.vs/efcore开发模板/DesignTimeBuild/.dtbcache.v2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore开发模板/DesignTimeBuild/.dtbcache.v2
--------------------------------------------------------------------------------
/.vs/efcore开发模板/FileContentIndex/4c1d815d-a3c4-4549-8ac6-ee9f6fd19fd0.vsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore开发模板/FileContentIndex/4c1d815d-a3c4-4549-8ac6-ee9f6fd19fd0.vsidx
--------------------------------------------------------------------------------
/.vs/efcore开发模板/FileContentIndex/5e881f66-3f98-4c71-827d-8cac41b858be.vsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore开发模板/FileContentIndex/5e881f66-3f98-4c71-827d-8cac41b858be.vsidx
--------------------------------------------------------------------------------
/.vs/efcore开发模板/FileContentIndex/62cf10e2-c775-4d9c-8a60-b0e7a50ede24.vsidx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore开发模板/FileContentIndex/62cf10e2-c775-4d9c-8a60-b0e7a50ede24.vsidx
--------------------------------------------------------------------------------
/.vs/efcore开发模板/FileContentIndex/read.lock:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore开发模板/FileContentIndex/read.lock
--------------------------------------------------------------------------------
/.vs/efcore开发模板/v17/.futdcache.v2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore开发模板/v17/.futdcache.v2
--------------------------------------------------------------------------------
/.vs/efcore开发模板/v17/.suo:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/.vs/efcore开发模板/v17/.suo
--------------------------------------------------------------------------------
/Common.Cache/Common.Cache.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net6.0
5 | enable
6 | enable
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Common.Cache/Options/CacheOptions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Common.Cache
8 | {
9 | ///
10 | /// 缓存配置
11 | ///
12 | public class CacheOptions
13 | {
14 | ///
15 | /// 缓存类型
16 | ///
17 | public CacheTypes CacheType { get; set; }
18 |
19 | ///
20 | /// Redis连接字符串
21 | /// 配置参考 https://stackexchange.github.io/StackExchange.Redis/Configuration.html
22 | ///
23 | public string RedisConnectionString { get; set; }
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/Common.Cache/Options/CacheType.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Threading.Tasks;
6 |
7 | namespace Common.Cache
8 | {
9 | ///
10 | /// 缓存类型
11 | ///
12 | public enum CacheTypes
13 | {
14 | ///
15 | /// 使用内存缓存(不支持分布式)
16 | ///
17 | InMemory = 0,
18 |
19 | ///
20 | /// 使用Redis缓存(支持分布式)
21 | ///
22 | Redis = 1
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/Common.DapperDal/Common.DapperDal.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net7.0
5 | enable
6 | enable
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/Common.DapperDal/DalBaseOfTEntity.Get.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Linq.Expressions;
5 | using System.Text;
6 |
7 | namespace DapperDal
8 | {
9 | public partial class DalBase where TEntity : class
10 | {
11 | ///
12 | /// 根据实体ID(主键)获取实体
13 | ///
14 | /// 实体ID
15 | /// 实体
16 | public virtual Task Get(TPrimaryKey id)
17 | {
18 | using (var connection = OpenConnection())
19 | {
20 | return Configuration.DalImplementor.Get(
21 | connection: connection,
22 | id: id,
23 | transaction: null,
24 | commandTimeout: null);
25 | }
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/Common.DapperDal/DalBaseOfTEntity.Insert.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Linq.Expressions;
5 | using System.Text;
6 |
7 | namespace DapperDal
8 | {
9 | public partial class DalBase where TEntity : class
10 | {
11 | ///
12 | /// 插入指定实体
13 | ///
14 | /// 实体
15 | /// 实体主键
16 | public virtual async Task Insert(TEntity entity)
17 | {
18 | using (var connection = OpenConnection())
19 | {
20 | return await Configuration.DalImplementor.Insert(
21 | connection: connection,
22 | entity: entity,
23 | transaction: null,
24 | commandTimeout: null);
25 | }
26 | }
27 |
28 | ///
29 | /// 批量插入指定实体集合
30 | ///
31 | /// 实体集合
32 | public virtual Task Insert(IEnumerable entities)
33 | {
34 | using (var connection = OpenConnection())
35 | {
36 | return Configuration.DalImplementor.Insert(
37 | connection: connection,
38 | entities: entities,
39 | transaction: null,
40 | commandTimeout: null);
41 | }
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/Common.DapperDal/DalBaseOfTEntity.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/liuzhixin405/netcore-micro/4a4e3b5d2aa4fe325cf8daf6615642463e5872d1/Common.DapperDal/DalBaseOfTEntity.cs
--------------------------------------------------------------------------------
/Common.DapperDal/DalOptions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace DapperDal
4 | {
5 | ///
6 | /// 数据访问设置项
7 | ///
8 | public class DalOptions
9 | {
10 | ///
11 | /// 逻辑删除时更新属性和值的构造器
12 | ///
13 | public Func