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
0
votes
1 answer

Sharparchitecture upgrade from 1.5 to 1.9 error

I have upgraded SharpArchitecture from 1.5 to 1.9. I have followed the guide here http://blog.sharparchitecture.net/post/Sharp-Architecture-19-released.aspx, and ensured that I have set "copy local = true" for the various DLLs, but I still receive…
Dofs
  • 17,737
  • 28
  • 75
  • 123
0
votes
2 answers

Auto-Mapping with Composite ID Not Working

I'm using the Sharp-Architecture framework and I have an entity that looks like this: public class BaanAlternateItemKey : ValueObject { public virtual string ItemId { get; protected set; } public virtual string AlternateItemId { get;…
Jeff B
  • 337
  • 1
  • 3
  • 10
0
votes
1 answer

NHibernate 3.0 Session.Query Method

Our team already works on a project with .NET 4, NHibernate 3.0 and SharpArchitecture 1.9.5. The problem is we can't get the repositories to work and fetch the data. We just want to get this right with a Site class for starters. The Site table is…
KymZen
  • 31
  • 1
  • 3
0
votes
1 answer

Making WCF Northwind Sharp Architecture works

Once again, as a beginner with WCF, MVC and Sharp Architecture, i might asking a stupid question, so bear with me. I'm finally able to make the Northwind example of Sharp Architecture work. I can browse the service using internet browser…
puntapret
  • 201
  • 4
  • 10
0
votes
2 answers

Replace Sharp Architecture's NHibernate.config with a Fluent Configuration

By default, the solution generated from Sharp Architecture's templify package configures NHibernate using an NHibernate.config file in the {SolutionName}.Web project. I would like to replace it with a fluent configuration of my own and still have…
rebelliard
  • 9,592
  • 6
  • 47
  • 80
0
votes
1 answer

Fluent NHibernate SchemaExport to SQLite not pluralizing Table Names

I am using SQLite as my db during development, and I want to postpone actually creating a final database until my domains are fully mapped. So I have this in my Global.asax.cs file: private void InitializeNHibernateSession() { …
sydneyos
  • 4,527
  • 6
  • 36
  • 53
0
votes
1 answer

Delete on Many to Many Relationship using Fluent Nhibernatev

Please, help me! I can't delete objects and dependence in Oid and CertRequest table. I have follow: Oid public class Oid { public virtual int Id { get; protected set; } public virtual int RowVersion { get; set; } public…
0
votes
1 answer

Regional parameters for n-tier data retrieval

I am wondering the best place in my web application tiers to user regional settings to format date column output from a database results query. I can get the regional settings from the HttpContext.Request and pass this as a string to the Business…
0
votes
2 answers

Sharp Architecture Value Objects

I'm checking out Sharp Architecture's code. So far it's cool, but I'm having problems getting my head around how to implement DDD value objects in the framework (doesn't seem to be anything mentioning this in the code). I'm assuming the base Entity…
0
votes
1 answer

WCF with Sharp architecture - The needed dependency of type could not be located with the ServiceLocator

I'm working with an application which uses wcf and sharp architecture, I'm trying to create a service to write to the database. Here is my service: (Sicaf.Core.Services.Wcf) [ServiceContract] public interface IFacturaWcfService :…
Francisco Q.
  • 177
  • 2
  • 3
  • 10
0
votes
1 answer

Sharp Architecture - NewtonSoft.Json assembly mismatch

Create a fresh Sharp Architecture project. Successfully build, create DB, run Web app. Attempt to add a new entity to the database via the web View. Get the error: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0,…
Terry
  • 14,099
  • 9
  • 56
  • 84
0
votes
1 answer

NHibernate and Sharp Architecture - DB connection not refreshed after changing NHiberate.config

I have a web service implemented in ASP.NET. I instantiate my NHibernate session in the Global.asax event handlers as follows: protected void Application_BeginRequest(object sender, EventArgs e) { …
rm6
  • 13
  • 2
-1
votes
1 answer

After IIS application pool recycling sometimes an error occurs "A storage mechanism has already been configured" (NHibernate)

I have found similar question "A storage mechanism has already been configured for this application" but have not found clear answer. After IIS application pool recycling sometimes an error occurs "A storage mechanism has already been configured"…
do_loop
  • 104
  • 4
1 2 3 4
5