Fix namespace

This commit is contained in:
2019-07-25 21:41:44 -04:00
parent c2220a3c0f
commit 001b793641

View File

@@ -44,7 +44,7 @@ namespace ChrisKaczor.HomeMonitor.Weather.Service.Data
// Switch to the database now that we're sure it exists // Switch to the database now that we're sure it exists
connection.ChangeDatabase(_configuration["Weather:Database:Name"]); connection.ChangeDatabase(_configuration["Weather:Database:Name"]);
var schema = ResourceReader.GetString("Weather.Service.Data.Resources.Schema.sql"); var schema = ResourceReader.GetString("ChrisKaczor.HomeMonitor.Weather.Service.Data.Resources.Schema.sql");
// Make sure the database is up to date // Make sure the database is up to date
command.CommandText = schema; command.CommandText = schema;
@@ -72,7 +72,7 @@ namespace ChrisKaczor.HomeMonitor.Weather.Service.Data
{ {
using (var connection = CreateConnection()) using (var connection = CreateConnection())
{ {
var query = ResourceReader.GetString("Weather.Service.Data.Resources.CreateReading.sql"); var query = ResourceReader.GetString("ChrisKaczor.HomeMonitor.Weather.Service.Data.Resources.CreateReading.sql");
connection.Execute(query, weatherMessage); connection.Execute(query, weatherMessage);
} }