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 configured for this application
...
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()
{
Configuration cfg = NHibernateSession.Init(
webSessionStorage,
...
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': 0,
'SkillTypeRequest.Event.Id': eventId,
'SkillTyp...
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 which is a component.
mapping.IgnoreProperty(x => x.MyCollection);
mapping.HasMany<Col...
This has been a problem that has existed on 3 projects for me.
I have tried the following:
<property name="connection.isolation">ReadCommitted</property>
Set in hibernate.cfg.xml
Using fluent nhiberate:
MsSqlConfiguration.MsSql2008.IsolationLevel(IsolationLevel.ReadCommitted);
Set in global.asax.cs
I have always been forced to s...
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 I downloaded the wrong thing?
I can't see anything on the wiki relating to 1.6 installa...