Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

make the sample application MyNotes ready to run

change README.md consistent with project name
change configration for default installation of sqlexpress
change MapsToAggregate errors in command objects
  • Loading branch information...
commit dd2f13265e9d48e3d74f76ed0f15ef7ee9565ffe 1 parent 2f9fa43
@jackliusr jackliusr authored
View
4 Samples/MyNotes/README.md
@@ -16,7 +16,7 @@ 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),
@@ -24,7 +24,7 @@ Follow these steps to get the website running.
- 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
View
4 Samples/MyNotes/src/ApplicationService/app.config
@@ -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/>
View
2  Samples/MyNotes/src/Commands/ChangeNoteText.cs
@@ -4,7 +4,7 @@
namespace Commands
{
- [MapsToAggregateRootMethod("MyProject.Domain.Note, MyProject.Domain", "ChangeText")]
+ [MapsToAggregateRootMethod("MyProject.Domain.Note, Domain", "ChangeText")]
public class ChangeNoteText : CommandBase
{
[AggregateRootId]
View
2  Samples/MyNotes/src/Commands/CreateNewNote.cs
@@ -4,7 +4,7 @@
namespace Commands
{
- [MapsToAggregateRootConstructor("MyProject.Domain.Note, MyProject.Domain")]
+ [MapsToAggregateRootConstructor("MyProject.Domain.Note, Domain")]
public class CreateNewNote : CommandBase
{
public Guid NoteId
View
2  Samples/MyNotes/src/Website/Web.config
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.