At some point, we will need to add persistence for our domain model. This will usually be done through a relational, object, or document database. Persistence is not part of our domain model. this is an independent or orthogonal concert in our separation of concerns pattern. This means that we don't want to mix the code that handles persistence with the code that defines the domain model.
What confuses me the most is I set up this portion just like I did with the inspection codes and the inspection codes works. Biggest difference is inspection codes is in the database and this is free form data that will be added to the database
The constructor is a method with the same name as the class right? I can't find that in my other controller that work :-/
@Grixxly Ok a controller is just a class. If you specify no constructor.. the compiler creates a default constructor to make an instance of your controller.
@Grixxly I guess you can take it home if you decide to leave your workplace :)
public WaterQualityInfoController(IWaterQualityInformation waterqualityinformation)
{
WaterQualityInformation = waterqualityinformation;
}
Compiler doesn't generate default ctor because of this
[InvalidOperationException: The IControllerFactory 'PoolSpaInspections.WebUI.Infrastructure.NinjectControllerFactory' did not return a controller for the name 'WaterQualityInformation'.]
I guess I don't understand. I know that when I click on the the other links that controller type is the controller that I need when I click on the WaterQualityInformation one controllerType is null
I don't know where it's called this MVC stuff is where I want to be but the auto-magic shit has me in the fetal position on the floor rocking back and forth mumbling 'no!!!!!!!'
Man, I wish Google understood English. "I want a website that given a list of known variables, unknown variables, and equations, will solve the unknown variables."
but it get's called when I click on the other links that calls other controllers. That's what is so frustrating I don't know where to set the breakpoint to find out what is Fin up
if (controllerType == null)
{
controllerType = (Type)WaterQualityInformation;
}
and get this:
Error 1 'PoolSpaInspections.Domain.Entities.WaterQualityInformation' is a 'type' but is used like a 'variable' C:\Users\aharmon\Documents\Visual Studio 2010\Projects\HealthDepartment\PoolSpaInspections.WebUI\Infrastructure\NinjectControllerFactory.cs 34 40 PoolSpaInspections.WebUI