Skip to content

Commit

Permalink
make the sample application MyNotes ready to run
Browse files Browse the repository at this point in the history
change README.md consistent with project name
change configration for default installation of sqlexpress
change MapsToAggregate errors in command objects
  • Loading branch information
jackliusr committed Dec 5, 2012
1 parent 2f9fa43 commit dd2f132
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Samples/MyNotes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Samples/MyNotes/src/ApplicationService/app.config
Original file line number Diff line number Diff line change
Expand Up @@ -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/>
Expand Down
2 changes: 1 addition & 1 deletion Samples/MyNotes/src/Commands/ChangeNoteText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Commands
{
[MapsToAggregateRootMethod("MyProject.Domain.Note, MyProject.Domain", "ChangeText")]
[MapsToAggregateRootMethod("MyProject.Domain.Note, Domain", "ChangeText")]
public class ChangeNoteText : CommandBase
{
[AggregateRootId]
Expand Down
2 changes: 1 addition & 1 deletion Samples/MyNotes/src/Commands/CreateNewNote.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Commands
{
[MapsToAggregateRootConstructor("MyProject.Domain.Note, MyProject.Domain")]
[MapsToAggregateRootConstructor("MyProject.Domain.Note, Domain")]
public class CreateNewNote : CommandBase
{
public Guid NoteId
Expand Down
2 changes: 1 addition & 1 deletion Samples/MyNotes/src/Website/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit dd2f132

Please sign in to comment.