GithubHelp home page GithubHelp logo

seriawei / zkeacms Goto Github PK

View Code? Open in Web Editor NEW
2.8K 162.0 863.0 48.91 MB

ZKEACMS build with .Net 8 (.Net CMS)可视化设计在线编辑内容管理系统

Home Page: http://www.zkea.net/cms

License: GNU General Public License v3.0

Batchfile 0.12% C# 31.38% CSS 12.69% JavaScript 33.68% HTML 10.13% PowerShell 0.96% Shell 0.05% Dockerfile 0.02% TSQL 10.36% Less 0.59% Smarty 0.01%
netcore-mvc cms-framework cms mvc-cms

zkeacms's Issues

数据库操作出错

这是堆栈信息:

System.Data.SqlClient.SqlException (0x80131904): 不允许启动新事务,因为有其他线程正在该会话中运行。
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.TdsExecuteTransactionManagerRequest(Byte[] buffer, TransactionManagerRequestType request, String transactionName, TransactionManagerIsolationLevel isoLevel, Int32 timeout, SqlInternalTransaction transaction, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransactionYukon(TransactionRequest transactionRequest, String transactionName, IsolationLevel iso, SqlInternalTransaction internalTransaction)
at System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransaction(TransactionRequest transactionRequest, String name, IsolationLevel iso, SqlInternalTransaction internalTransaction)
at System.Data.SqlClient.SqlInternalConnection.BeginSqlTransaction(IsolationLevel iso, String transactionName, Boolean shouldReconnect)
at System.Data.SqlClient.SqlConnection.BeginTransaction(IsolationLevel iso, String transactionName)
at System.Data.SqlClient.SqlConnection.BeginDbTransaction(IsolationLevel isolationLevel)
at System.Data.Common.DbConnection.BeginTransaction(IsolationLevel isolationLevel)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransactionWithNoPreconditions(IsolationLevel isolationLevel)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransaction(IsolationLevel isolationLevel)
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransaction()
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(Tuple2 parameters) at Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded) at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, TState state, Func2 operation)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable1 commandBatches, IRelationalConnection connection) at Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IReadOnlyList1 entries)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IReadOnlyList1 entriesToSave) at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess) at Microsoft.EntityFrameworkCore.DbContext.SaveChanges() at Easy.RepositoryPattern.ServiceBase2.Update(T item, Boolean saveImmediately) in G:\TDDownload\ZKEACMS.Core-2.0\ZKEACMS.Core-2.0\src\EasyFrameWork\RepositoryPattern\ServiceBase.cs:line 159
at ZKEACMS.Page.PageService.Update(PageEntity item, Boolean saveImmediately) in G:\TDDownload\ZKEACMS.Core-2.0\ZKEACMS.Core-2.0\src\ZKEACMS\Page\PageService.cs:line 57
at ZKEACMS.Page.PageService.b__13_0(PageEntity m) in G:\TDDownload\ZKEACMS.Core-2.0\ZKEACMS.Core-2.0\src\ZKEACMS\Page\PageService.cs:line 204
at Easy.Extend.ExtIEnumerable.Each[T](IEnumerable1 source, Action1 fun) in G:\TDDownload\ZKEACMS.Core-2.0\ZKEACMS.Core-2.0\src\EasyFrameWork\Extend\ExtIEnumerable.cs:line 15
at ZKEACMS.Page.PageService.Move(String id, Int32 position, Int32 oldPosition) in G:\TDDownload\ZKEACMS.Core-2.0\ZKEACMS.Core-2.0\src\ZKEACMS\Page\PageService.cs:line 201
at ZKEACMS.Controllers.PageController.MovePage(String id, Int32 position, Int32 oldPosition) in G:\TDDownload\ZKEACMS.Core-2.0\ZKEACMS.Core-2.0\src\ZKEACMS\Controllers\PageController.cs:line 210
at lambda_method(Closure , Object , Object[] )
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__12.MoveNext()
ClientConnectionId:7a312abb-f653-4942-ae60-2e5fba91118e
Error Number:3988,State:1,Class:16

使用 Release 配置发布

之前发布的时候,是直接使用debug生成的程序集,现改为 release,发布的程序将会有更好的性能

数据库查询的性能问题

IService<T> https://github.com/SeriaWei/ZKEACMS.Core/blob/master/src/EasyFrameWork/RepositoryPattern/IService.cs#L17-L20的Get方法返回的是IEnumerable<T>类型;RedirectRouteConstraint https://github.com/SeriaWei/ZKEACMS.Core/blob/master/src/ZKEACMS.Redirection/RedirectRouteConstraint.cs#L17-L18 类型调用CountFirst都会调用一次数据库,如果这个类型的Match方法返回的结果是true,则会查询三次数据库。

建议将返回结果改为IList<T>List<T>

排序问题

列表排序不对。
文章列表,产品列表排序错误

现有资源目前无法使用

由于之前的资源使用了二进制序列话,.net. core 目前无法使用。将通过修改资源格式来共享

简化包引用

用 .net core 2.0 的引用方式,发布以后,包更小

大文件上传

之前文件上传限制4M大小,现大文件采用分片上传形式上传,将不限制大小。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.