Use Postgresql, add db run params, npgsql logging adapter and empty models
This commit is contained in:
parent
3425896c0b
commit
d2f31d0730
24 changed files with 252 additions and 39 deletions
12
Geekbot.net/Lib/Extensions/LongExtensions.cs
Normal file
12
Geekbot.net/Lib/Extensions/LongExtensions.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace Geekbot.net.Lib.Extensions
|
||||
{
|
||||
public static class LongExtensions
|
||||
{
|
||||
public static ulong AsUlong(this long thing)
|
||||
{
|
||||
return Convert.ToUInt64(thing);
|
||||
}
|
||||
}
|
||||
}
|
12
Geekbot.net/Lib/Extensions/UlongExtensions.cs
Normal file
12
Geekbot.net/Lib/Extensions/UlongExtensions.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace Geekbot.net.Lib.Extensions
|
||||
{
|
||||
public static class UlongExtensions
|
||||
{
|
||||
public static long AsLong(this ulong thing)
|
||||
{
|
||||
return Convert.ToInt64(thing);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue