mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 18:47:40 -05:00
Fix namespace
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user