Permalink
Browse files

Merge pull request #91 from jackliusr/master

make the sample application MyNotes ready to run
  • Loading branch information...
2 parents 2f9fa43 + dd2f132 commit 3e91a96182778e8133a66cc41feb197a1cf12c87 @pjvds committed Dec 5, 2012
@@ -16,15 +16,15 @@ What do you need to run this sample app?
Follow these steps to get the website running.
0. Run BUILD.bat in the root folder (two up).
-1. Open MyNotes.sln with Visual Studio 2010.
+1. Open MyNotes.sln with Visual Studio 2010 (Run as Administrator http://stackoverflow.com/questions/6898597/visual-studio-unable-to-open-port-to-host-wcf-service).
2. Run MyNotesEventStore.sql to create the event store database.
3. Run MyNotesReadModel.sql to create the read model database.
4. If needed (this step is not needed when you run the default SQL express),
update ReadModelContainer connection string in
- CommandService\Web.config
- ReadModel\App.config
- Website\Web.config
-5. Set Website and Denormalizer as default startup project.
+5. Set Website and ApplicationService as default startup project.
6. Hit F5 and have fun!
CONTACT
@@ -3,8 +3,8 @@
<configSections>
</configSections>
<connectionStrings>
- <add name="EventStore" connectionString="Data Source=(local);Initial Catalog=MyNotesEventStore;Integrated Security=True" providerName="System.Data.SqlClient"/>
- <add name="ReadModelContainer" connectionString="metadata=res://*/ReadModel.csdl|res://*/ReadModel.ssdl|res://*/ReadModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=(local);Initial Catalog=MyNotesReadModel;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient"/>
+ <add name="EventStore" connectionString="Data Source=(local)\sqlexpress;Initial Catalog=MyNotesEventStore;Integrated Security=True" providerName="System.Data.SqlClient"/>
+ <add name="ReadModelContainer" connectionString="metadata=res://*/ReadModel.csdl|res://*/ReadModel.ssdl|res://*/ReadModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=(local)\sqlexpress;Initial Catalog=MyNotesReadModel;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient"/>
</connectionStrings>
<system.serviceModel>
<bindings/>
@@ -4,7 +4,7 @@
namespace Commands
{
- [MapsToAggregateRootMethod("MyProject.Domain.Note, MyProject.Domain", "ChangeText")]
+ [MapsToAggregateRootMethod("MyProject.Domain.Note, Domain", "ChangeText")]
public class ChangeNoteText : CommandBase
{
[AggregateRootId]
@@ -4,7 +4,7 @@
namespace Commands
{
- [MapsToAggregateRootConstructor("MyProject.Domain.Note, MyProject.Domain")]
+ [MapsToAggregateRootConstructor("MyProject.Domain.Note, Domain")]
public class CreateNewNote : CommandBase
{
public Guid NoteId
@@ -6,7 +6,7 @@
<configuration>
<connectionStrings>
- <add name="ReadModelContainer" connectionString="metadata=res://*/ReadModel.csdl|res://*/ReadModel.ssdl|res://*/ReadModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=(local);Initial Catalog=MyNotesReadModel;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
+ <add name="ReadModelContainer" connectionString="metadata=res://*/ReadModel.csdl|res://*/ReadModel.ssdl|res://*/ReadModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=(local)\sqlexpress;Initial Catalog=MyNotesReadModel;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
</connectionStrings>
<system.web>

0 comments on commit 3e91a96

Please sign in to comment.