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
1
vote
1 answer

Sharp architecture & WCF NHibernate session from front server to back server

We are about to embark on a large project & I would like to use Sharp Architecture (plan is to use NHibernate & MVC already). Initially we will offer WCF services to external providers & then plan on building a MVC site that will talk to these…
Chris McKelt
  • 1,378
  • 2
  • 17
  • 38
1
vote
1 answer

ISessionFactoryKeyProvider missing from CommonServiceLocator when upgrading NHibernate from 2.1 to 3.0

I have a ASP.NET MVC application that uses Spring.NET 1.2 for dependecy injection and NHibernate 2.1 for ORM. It has been running on MVC 3, using S#arp Architecture in a slightly modified version which we have been compiling ourselves, something I…
nforss
  • 1,258
  • 1
  • 17
  • 31
1
vote
1 answer

Domain Model - Business Validation / Errors

I am currently refactoring my project and one thing I'm not quite sure on is how to handle business validation errors. At the moment I am using the RulesException class from the xVal library, I beleive this library is no longer being developed so I…
1
vote
1 answer

Sporadic "Method 'get_Session' in type from assembly does not have an implementation"

Suddenly the web app that I develop started to give this error message - to the user, but not to me, and only sometimes. I know that this error can be caused by interface assembly and implementation assembly reference versions mismatch. But I did…
queen3
  • 15,333
  • 8
  • 64
  • 119
1
vote
2 answers

DropDownListFor Not Displaying/Persisting Null for First Choice in List

I have an MVC app via SharpArch. In the view I have: Html.DropDownListFor(x => x.Location, new SelectList(Model.PossibleLocations, "Id", "Address"), "-- No Location --") I have 2 issues. The Dropdown is not getting updated when the…
Adam Dymitruk
  • 124,556
  • 26
  • 146
  • 141
1
vote
2 answers

Determine if Generic Class Implements Type

I'm working on a sharp-architecture project that mixes fluent mappings and auto mappings. A basic sharp-architecture project already has a method (AutoMappingConfiguration.ShouldMap) that determines if a type should be automatically mapped or not.…
Jeff B
  • 337
  • 1
  • 3
  • 10
1
vote
2 answers

Sharp Architecture ignoring my Formula mappings

I'm having a problem where Sharp Architecture will correctly map everything I have setup in my IAutoMappingOverride classes, except for Formula. These get simply ignored and thus I get SQL's invalid identifier when trying to query the database. //…
rebelliard
  • 9,592
  • 6
  • 47
  • 80
1
vote
1 answer

Passing entities to other layers? (ddd noob)

I am exploring sharp architecture, and have seen that it is actually passing the entities around to other layer (as far as presentation layers). Shouldn't it be exposing interfaces of the entities to make it more loosely coupled? Or am I missing…
1
vote
1 answer

Getting Sharp Architecture template to work with Visual Studio 2010

I've download SharpArchApplicationTemplate_1_6_VS2010.zip I have read through this: http://wiki.sharparchitecture.net/VSTemplatesAndCodeGen.ashx However, this is aimed at VS 2008 I'm using 2010, and I can't see how to install the template(s)? Have…
Alex
  • 37,502
  • 51
  • 204
  • 332
1
vote
0 answers

IgnoreProperty and Reveal.Member on Fluent NHibernate 1.1.0.685 on component type

I'm trying to ignore the property which is a ReadOnlyCollection and map the private property. I'm getting the following error: Could not find a setter for property 'MyCollection' in class 'Project.Core.MyClass' This is the automapper for that class…
Homer1980ar
  • 277
  • 6
  • 15
1
vote
0 answers

Will the Sharp Architecture ModelBinder properly constitute an object using a jQuery ajax request?

Do you know if it's possible to make an AJAX request and have the model binder properly constitute an object based on the parameter provided? For example: $.ajax({ type: 'POST', url: '../Create', data: ( { 'SkillTypeRequest.Id': …
Kyle Baley
  • 580
  • 1
  • 5
  • 16
1
vote
1 answer

TypeInitializationException while trying to use Sharp Architecture with ServiceStack

This is the service: public class InvoiceDetailsService : RestServiceBase { public override object OnGet(InvoiceDetails request) { return new InvoiceDetailsResponse(); } } And these are the service…
Jonas Arcangel
  • 2,085
  • 11
  • 55
  • 85
1
vote
0 answers

Access Current NHibernate Session in Castle Windsor IOC Container

I am trying to access my current nhibernate session using IOC from within a running Quartz.net Job and every time it comes back as null stating the following: 'NHibernateSession.Current' threw an exception of type…
1
vote
2 answers

Sharp Architecture - Entry Point was not found

Install a fresh Sharp Architecture application Run YourApp.Web.Mvc See the following error: Entry Point was not found
Terry
  • 14,099
  • 9
  • 56
  • 84
1
vote
1 answer

Can I use Sharp Architecture in an classic ASP.Net application or it is only for ASP.Net MVC?

I want to start a new project that use NHibernate as data access layer. Now my question is that, Can I use Sharp Architecture in an ASP.Net application or it is only for ASP.Net MVC?
masoud ramezani
  • 22,228
  • 29
  • 98
  • 151