kigg

Is Kigg MVC application DRY? Can we tweak the Repository

北城以北 提交于 2019-12-10 18:56:13
问题 I was recently taking a look at the Kazi Manzur Kigg MVC implementation (Kazi rocks) and noticed some code that seemed to defeat the DRY/SOC principle. I'd love to have everyone's thoughts on a possible refactor to separate concerns. Kigg implements both an Add and Remove method on each repository class ( Note : BaseRepository has virtual methods than can be overloaded by each concrete implementation.) The implementations for the Kigg.Repository.LinqToSql.CategoryRepository and the Kigg

Linq-To-Sql and MARS woes - A severe error occurred on the current command. The results, if any, should be discarded

北慕城南 提交于 2019-12-06 15:52:12
问题 We have built a website based on the design of the Kigg project on CodePlex: http://kigg.codeplex.com/releases/view/28200 Basically, the code uses the repository pattern, with a repository implementation based on Linq-To-Sql. Full source code can be found at the link above. The site has been running for some time now and just about a year ago we started to get errors like: There is already an open DataReader associated with this Command which must be closed first. ExecuteNonQuery requires an

Linq-To-Sql and MARS woes - A severe error occurred on the current command. The results, if any, should be discarded

穿精又带淫゛_ 提交于 2019-12-04 21:22:17
We have built a website based on the design of the Kigg project on CodePlex: http://kigg.codeplex.com/releases/view/28200 Basically, the code uses the repository pattern, with a repository implementation based on Linq-To-Sql. Full source code can be found at the link above. The site has been running for some time now and just about a year ago we started to get errors like: There is already an open DataReader associated with this Command which must be closed first. ExecuteNonQuery requires an open and available Connection. The connection's current state is closed. These are the closest error