- 2024-06-10DoNet Core的启动过程-WebApplicationBuilder
1.前言 在NET6开始做ASP.NETCore的开发,我们首先要看的是启动过程,而WebApplication和WebApplicationBuilder类是启动过程好不开的类,WebApplicationBuilder来引导启动,这和前面Core的版本引导启动分为Program和Startup是不同的,.NET6及以上版本直接使用Program中引导启动,而We
- 2024-01-31CSharp: create pdf file using iText 8.0 in donet 8.0
/*IDE:VS202217.5OS:windows10.net8.0iText8.0System.Text.Encoding.CodePages*/namespaceConsoleAppPdfdemo{usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.IO;usingSystem.Text;
- 2023-09-21donet 常用命令汇总......
dotnetnew:用于创建新的.NET项目。示例:创建一个名为"MyConsoleApp"的控制台应用程序项目。dotnetnewconsole-nMyConsoleAppdotnetbuild:用于构建.NET项目。示例:构建当前目录中的项目。dotnetbuilddotnetrun:用于运行.NET应用程序。示例:
- 2023-03-31CSharp: Tesseract OCR V5.0 in donet core 3.1
Referenceresourceshttps://github.com/alex-doe/open-ocr-dotnethttps://github.com/tleyden/open-ocr/gohttps://github.com/DayBreak-u/chineseocr_litehttps://github.com/pjreddie/darknethttps://sourceforge.net/projects/vietocr/https://github.com/PaddlePaddle/
- 2023-02-08CSharp: donet 7 create logging File with EF Core 7.02
///<summary>///https://learn.microsoft.com/zh-cn/ef/core/logging-events-diagnostics/simple-logging///</summary>///<paramname=
- 2023-02-07CSharp: donet 7 create database view mapping with EF core 7.02
sql: createviewViewEmployeeMastersasselecta.*,b.Nameas'DepartmentName',b.Codeas'DepartmentCode'fromEmployeeMastersasa,DepartmentMasterasb
- 2023-02-07CSharp: donet view mapping with EF 6
/*functionmappinghttps://learn.microsoft.com/en-us/ef/core/querying/user-defined-function-mappingviewmappingpublicDbQuery<View_BookDetails>View_BookDe
- 2023-02-06CSharp: donet 7 Stored procedure mapping with Entity Framework core 7
sql:IFEXISTS(select*fromsysobjectswhereid=object_id(N'[dbo].People')andOBJECTPROPERTY(id,N'IsUserTable')=1)DROPTABLEPeopleGOCREATETABLE
- 2023-02-06CSharp: donet Stored procedure mapping with Entity Framework 6
sql:IFEXISTS(select*fromsysobjectswhereid=object_id(N'[dbo].DepartmentMaster')andOBJECTPROPERTY(id,N'IsUserTable')=1)DROPTABLEDepartmentMas
- 2023-02-04CSharp: donet 6 create view with EF Core 6
[Keyless]publicclassPersonOrderCount{publicstringName{get;set;}publicintCount{get;set;}}publicclassPerson{publicintPe
- 2023-02-04CSharp: donet 6 with Entity Framework Core 6
///<summary>//////Entity///</summary>publicclassProduct{publicProduct(){}publicintId{get;
- 2023-01-29CSharp: Relational mapping in donet using Entity Framework
sqlscript--dbo.Students--Idintidentity--Name--Agebyte--CreatedTimedate--ModifiedTimedateIFEXISTS(select*fromsysobjectswhereid=object
- 2023-01-26CSharp: Add,Edit,Del,Select in donet using Entity Framework
usingSystem;usingSystem.Collections.Generic;usingSystem.Data.Entity;usingSystem.Linq;usingSystem.Runtime.Remoting.Contexts;usingSystem.Text;usi
- 2023-01-08CSharp: Unit of Work Pattern in donet core 6
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespaceGeovin.Du.DuUnitOfWork.Domai
- 2022-12-19CSharp: Memento Pattern in donet core 6
usingGeovin.Du.DuMemento.Conceptual;usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;
- 2022-12-17CSharp: Chain of Responsibility Pattern in donet core 6
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespaceGeovin.Du.DuChainOfResponsib
- 2022-12-17CSharp: Proxy Pattern in donet.core 6.0
usingSystem;usingSystem.Collections.Generic;usingSystem.Data;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespaceGeovin.Du
- 2022-11-16CSharp: Facade Pattern in donet 6
///<summary>///外观模式FacadePattern///银行///</summary>publicclassBank{publicboolIsUntrustworthy(Custome
- 2022-11-15CSharp: Decorator Pattern in donet 6
///<summary>///装饰模式DecoratorPattern亦称:装饰者模式、装饰器模式、Wrapper、Decorator///</summary>publicinterfaceIDataSource
- 2022-11-14CSharp: Composite Pattern in donet 6
///<summary>///组合模式CompositePattern亦称:对象树、ObjectTree、CompositePattern///</summary>publicabstractclassGift{
- 2022-11-13CSharp: Bridge Pattern in donet 6
///<summary>///桥接模式BridgePattern-StructuralPattern///</summary>publicabstractclassDocument{///<summary>
- 2022-11-13CSharp: Adapter Pattern in donet 6
///<summary>///适配器模式亦称:封装器模式、Wrapper、AdapterAdapterPattern///</summary>publicclassEmployee{///<s
- 2022-11-09CSharp: Prototype Pattern in donet 6
///<summary>///原型模式PrototypePattern///</summary>publicinterfaceIColorPrototype{///<summary>///
- 2022-11-09CSharp: Singleton Pattern in donet 6
///<summary>///单例模式单件模式、SingletonPattern///</summary>publicabstractclassBaseGreeter{publicvirtualvoid
- 2022-11-07CSharp: Classes, Structures, And Records in c# 10(donet 6)
#regionRecordTypesRecordClassinC#10///<summary>///Positionalparameterssyntax///位置参数的语法///</summary>///<pa