This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using ServiceStack.Text; | |
using System.Collections.Generic; | |
using System.Runtime.Serialization; | |
using ServiceStack; | |
using ServiceStack.Web; | |
using System.Net; | |
namespace JsonTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using ServiceStack; | |
using System.Text; | |
using ServiceStack.Web; | |
using System.Collections.Generic; | |
namespace ComplexIdTest | |
{ | |
class MainClass | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using ServiceStack; | |
using System.Text; | |
using ServiceStack.Web; | |
namespace ComplexIdTest | |
{ | |
class MainClass | |
{ | |
public static void Main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using ServiceStack.ServiceInterface; | |
using ServiceStack.ServiceHost; | |
using ServiceStack.WebHost.Endpoints; | |
using Funq; | |
namespace Testv3 | |
{ | |
class MainClass | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using ServiceStack; | |
namespace Tests.Recipe | |
{ | |
class MainClass | |
{ | |
public static void Main() | |
{ | |
// Very basic console host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using ServiceStack; | |
namespace Tests.Recipe | |
{ | |
class MainClass | |
{ | |
public static void Main() | |
{ | |
// Very basic console host |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void CheckDatabaseModel(Type modelType) | |
{ | |
// Get the referenced model version | |
string modelVersion = Assembly.GetAssembly(modelType).GetName().Version.ToString(); | |
// Determine the last model version number from the configuration | |
var config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); | |
var lastModelVersion = config.AppSettings.Settings["DatabaseModelVersion"]; | |
// Determine if the model has changed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using ServiceStack; | |
using ServiceStack.Auth; | |
using ServiceStack.Web; | |
using System.Net; | |
using System.Text; | |
using System.Collections.Generic; | |
namespace Testv4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using ServiceStack.ServiceInterface; | |
using ServiceStack.ServiceHost; | |
using ServiceStack.WebHost.Endpoints; | |
using ServiceStack.Common.Web; | |
using ServiceStack.Logging; | |
using ServiceStack.FluentValidation.Results; | |
using ServiceStack.Text; | |
using ServiceStack.ServiceInterface.Validation; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using ServiceStack; | |
namespace Testv4 | |
{ | |
class MainClass | |
{ | |
public static void Main() | |
{ | |
var appHost = new AppHost(500); |