Questions tagged [sharp-architecture]

Sharp Architecture is a solid architectural foundation for rapidly building maintainable web applications leveraging the ASP.NET MVC framework with NHibernate.

Sharp Architecture is a solid architectural foundation for rapidly building maintainable web applications leveraging the ASP.NET MVC framework with NHibernate. The primary advantage to be sought in using any architectural framework is to decrease the code one has to write while increasing the quality of the end product.

A framework should enable developers to spend little time on infrastructure details while allowing them to focus their attentions on the domain and user experience. Accordingly, S#arp Architecture adheres to the following key principles:

  • Focused on Domain Driven Design
  • Loosely coupled
  • Preconfigured Infrastructure
  • Open Ended Presentation

The overall goal of this is to allow developers to worry less about application "plumbing" and to spend most of their time on adding value for the client by focusing on the business logic and developing a rich user experience.

73 questions
60
votes
13 answers

ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login

I'm running MVC3 and a windows auth web application. When I deploy to IIS6 it runs great until I hit a page that requires authentication. It then is auto-redirecting to /Account/Login when I have no trace of that in my application and my…
40
votes
6 answers

Override for fluent NHibernate for long text strings nvarchar(MAX) not nvarchar(255)

When ever you set a string value in fluent NHibernate it alwasy sets the DB vales to Nvarchar(255), I need to store quite a lot of long string which are based on user inputs and 255 is impractical. Just to add this is an issue with the automapper…
TheAlbear
  • 5,507
  • 8
  • 51
  • 84
10
votes
2 answers

T4 for Sharp Architecture/Northwind Problem

I have just downloaded sharparchitecture/Northwind and i'm trying to get crud scaffolding to work. I have changed nothing except adding missing reference to this class library. I try to run ScaffoldingGeneratorCommand.tt and I hit following 3…
PK.
  • 588
  • 1
  • 4
  • 12
7
votes
3 answers

A storage mechanism has already been configured for this application

I am getting this error whenever my S#arp Architecture attempts to start and this is an problem with SQL Server (for example: SQL Server is not runing), after I start SQL Server and hit refresh, I get this error: A storage mechanism has already been…
K.A.D.
  • 3,648
  • 3
  • 34
  • 35
6
votes
2 answers

Cannot set a default Nhibernate isolation level (eg via mapping)

This has been a problem that has existed on 3 projects for me. I have tried the following: ReadCommitted Set in hibernate.cfg.xml Using fluent…
Alistair
  • 1,939
  • 2
  • 22
  • 31
6
votes
2 answers

Is CQRS alternative to CRUD?

What is different between CQRS and CRUD and can I use the UnitOfWork and Repository patterns in both cases ? If I have a complicated relationship between the entites which one you are recommending me and why ? CQRS pattern :…
6
votes
1 answer

dll versions displayed in visual studio .Net not reflecting the referenced dll file/product versions

I have a console app c# project that depends on NHibernate 3.3.2 and ShapArch.NHibernate 2.0.4.628 which has been compiled with NHibernate 3.3.1 (as far as I know - I might be wrong, but when I created a 2.0.4 SharpArch project it downloaded NH…
boggy
  • 3,674
  • 3
  • 33
  • 56
6
votes
1 answer

NHibernate ConventionModelMapper; What is the difference between IsRootEntity & IsEntity

I'm playing around with Sharp Architecture Lite, which emphasizes convention over configuration, and trying to understand how the NHibernate ConventionModelMapper works. Specifically, I can't tell the difference between the IsRootEntity & IsEntity…
5
votes
2 answers

NHibernate Concurrency problem

I have a S#arp Architecture app that implements a lightweight queue-processing thing whereby various threads pull entities from a list and set their status to mark the fact that processing has started on those items. Despite wrapping the…
codeulike
  • 22,514
  • 29
  • 120
  • 167
4
votes
1 answer

How to setup NHibernate with Sharp Architecture in a multi-threaded console application?

I'm still pretty new to these technologies. The real problem here is how to manage the sessions per thread in the console app. Currently, if I run it as a single thread then all is well. As soon as I switch to a multi-threaded model, I'll start…
longda
  • 10,153
  • 7
  • 46
  • 66
3
votes
0 answers

Scaffolding support in Sharp Architecture 2.0

have they dropped support for scaffolding in SA 2.0. i have downloaded the templify-project. I installed templify and created a solution but the project structure it created did not include tools and tools/CrudScaffolding that are supposed to…
3
votes
1 answer

Using SharpArchitecture's NHibernateSession in conjunction with a different thread

I'm using SharpArchitecture in an ASP.NET MVC 3 application. Everything works wonderfully. Using SharpArchitecture's NHibernateInitializer to initialize a new Session per request like so: protected void Application_BeginRequest(object sender,…
3
votes
2 answers

For specific controller make Windsor instantiate different classes

I use S#arp Architecture which uses Windsor Castle for IoC. I got a new controller now that, unlike all other controllers in the project, need a different implementation of the same interfaces. I.e. all controllers use ProductsRepository:…
queen3
  • 15,333
  • 8
  • 64
  • 119
3
votes
1 answer

An example for using SharpArch with c# windows applications?

Are there any example for using S#arp Architecture with c# desktop windows applications, i notices that SharpArch.Contrib provide some functionality to do that but i need some example>
Saw
  • 6,199
  • 11
  • 53
  • 104
2
votes
2 answers

Sharp Architecture Simple CRUD Application

i am trying to get start with the Sharp Architecture by building the test application mentioned here, i have followed through the steps given in the tutorial but hit a road block where the database schema generation is described. According to the…
John x
  • 4,031
  • 8
  • 42
  • 67
1
2 3 4 5