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

problems when using Npgsql in SharpArchitecture

Is there some guy can help me when using Npgsql in SharpArchitecture.I'm frustrated. I used Postgresql 8.4, Npgsql 2.0.11, SharpArchitecture 2.0.0.0, and visual studio 2010. My sample project named "success". 1)I refer Npgsql driver in every…
realylz
  • 19
  • 2
0
votes
1 answer

Nhibernate entities across wcf

I have been reading about using Sharp Architecture to control nhiberate via Wcf. Is there anything in Sharp Architecture that helps me sending lazy loaded nhiberante entities across wcf?
Phil Whittaker
  • 434
  • 4
  • 20
0
votes
2 answers

How to generate LINQ2SQL classes from T4 Templates using Fluent Hibernate

I have asked a similar question before which was not answered, i am trying to understand how can i generate LINQ2SQL classes using T4 templates. I'm using (or trying to use) sharp architecture. just couldn't find the starting point. What i have…
0
votes
1 answer

fluent Nhibernate unknown path

I have a project with sharp architecture on VS2010 and I'm getting Server Error in '/' Application. Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled…
Leoadell
  • 65
  • 1
  • 1
  • 5
0
votes
2 answers

Sharp Architecture + NHibernate Envers

Currently we are using Sharp Architecture 1.9.6. And we need to audit our domain classes. It seems comfortably to use NHibernate Envers for this task. But I couldn't configure Sharp Architecture to use this library. There were some errors but I…
0
votes
1 answer

Issues with Assigning values to Named Parameters in Nhibernate

I am relatively new to Nhibernate. I am trying to update a stored procedure. I got the below section in the named query. exec UpdateTest :DateField :StringField :IntField :BoolField…
Hunter
  • 2,370
  • 2
  • 20
  • 24
0
votes
1 answer

Accessing current request context in NHibernate interceptor

I'm playing around with SharpArchitecture and I'm trying to create a simple AuditInterceptor for NHibernate in the Infrastructure layer. Now, my problem is to make the current request details accessible from within the interceptor. This includes the…
user93202
0
votes
2 answers

Error with Sharp Architecture Tasks Layer: Command handler not found for command type

I am currently using Sharp Architecture 2.0 and have been doing pretty well with it. But I am coming on an issue with Performing commands in the Tasks layer. I have the following classes associated with my Command: SaveOptionStep1Command which…
Reaction21
  • 661
  • 1
  • 5
  • 18
0
votes
1 answer

what exactly is going inside Nhibernate.ISession SaveOrUpdate

I am using MVC, NHibernate and Sharp architecture for my project. Whenever I am saving objects(entities) using SaveOrUpdate there are child entities which are updated as well. But instead of updating child entities it runs DELETE-INSERT for all the…
Shabbir Ahmad
  • 35
  • 1
  • 9
0
votes
1 answer

Fluent Automapper issue with tag creation

POST EDITED - see edit below I have a query about the FLuent Automapping which is used as part of the SHarp Architecture. Running one of the tests cases will generate a schema which I can use to create tables in my DB. I'm developing a site with…
user676767
  • 255
  • 2
  • 12
0
votes
2 answers

Ignore Base class with Sharp Architecture and Fluent NHibernate

Using Sharp Architecture 1.9 I have a base class that inherits from the Sharp Arch Entity class public class LineItem : EntityWithTypedId { // various properties } and then two classes that inherit: public class BasketItem : LineItem {…
autonomatt
  • 4,393
  • 4
  • 27
  • 36
0
votes
1 answer

How to use Data Annotations with Sharp Architecture

We recently upgraded to MVC2 and SharpArchitecture 1.6. Our models are all in our Project.Core project, while resources are in our Project.Web project. We can't reference the resource files in Core , as that would create a circular dependency. We…
0
votes
1 answer

SaveOrUpdate is trying to insert NULL into primary key field

I'm creating a little application using Sharp Architecture, and I've run into a bug I can't figure out. I think it has something to do with the NHibernte mappings. In my HttpPost Create() method, my SaveOrUpdate call is trying to insert null into…
0
votes
2 answers

Datamodel for temporary users for a forum

I have created a forum, but have now found out that to create more traffic I need to enable anonymous users to add posts. The idea is that a user who doesn't have an account, can write a post, and fill out the following fields (as you can with…
Dofs
  • 17,737
  • 28
  • 75
  • 123
0
votes
2 answers

Nhibernate.linq Session.Query ignore not.lazyload

I'm using SharpArch, i extended the Repository adding this methods : public IQueryable FindAll(Expression> expression) { var queryable = Session.Query(); return queryable.Where(expression); } public IQueryable