View main.cs
using System; | |
using System.Linq; | |
using ServiceStack; | |
using ServiceStack.Text; | |
using System.Collections.Generic; | |
AutoMapping.RegisterConverter((CarRevisionDbo from) => { | |
var to = from.ConvertTo<CarRevisionDto>(skipConverters:true); | |
to.PopulateWith(from.Car); | |
return to; |
View main.cs
using System; | |
using System.Collections.Generic; | |
using ServiceStack; | |
using ServiceStack.Text; | |
using ServiceStack.OrmLite; | |
using ServiceStack.OrmLite.Sqlite; | |
using ServiceStack.DataAnnotations; | |
var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider); | |
var db = dbFactory.Open(); // Open ADO.NET DB Connection |
View main.cs
using System; | |
using ServiceStack; | |
using ServiceStack.Text; | |
using ServiceStack.OrmLite; | |
using ServiceStack.OrmLite.Sqlite; | |
using ServiceStack.DataAnnotations; | |
var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider); | |
var db = dbFactory.Open(); // Open ADO.NET DB Connection |
View main.cs
using System.Linq; | |
using ServiceStack; | |
using ServiceStack.Text; | |
JsConfig<string>.DeSerializeFn = str => str?.Trim(); | |
public class Test | |
{ | |
public string Name { get; set; } | |
public string Age { get; set; } |
View main.cs
using ServiceStack; | |
using ServiceStack.Text; | |
using ServiceStack.OrmLite; | |
using ServiceStack.OrmLite.Sqlite; | |
using ServiceStack.DataAnnotations; | |
var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider); | |
var db = dbFactory.Open(); // Open ADO.NET DB Connection | |
OrmLiteUtils.PrintSql(); |
View main.cs
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using ServiceStack; | |
using ServiceStack.Text; | |
class ListEntry | |
{ | |
public ListEntry(string a, string b) | |
{ |
View main.cs
using ServiceStack; | |
using ServiceStack.Text; | |
using ServiceStack.OrmLite; | |
using ServiceStack.OrmLite.Sqlite; | |
using ServiceStack.DataAnnotations; | |
var dbFactory = new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider); | |
var db = dbFactory.Open(); // Open ADO.NET DB Connection | |
public class CustomerAddress |
View ss-require.js
var EXPORT = { vue: 'Vue' }; | |
window.define = function (name, deps, f) { | |
var anon = typeof name != "string"; | |
if (anon) { | |
f = deps; | |
deps = name; | |
} | |
if (typeof deps == "function") { | |
f = deps; | |
deps = []; |
View main.cs
using System.Linq; | |
using System.Runtime.Serialization; | |
using ServiceStack; | |
using ServiceStack.Text; | |
[DataContract] | |
public class Parent | |
{ | |
[DataMember(Name = "parentItem")] | |
public virtual string Item { get; set; } |
View main.cs
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using ServiceStack; | |
using ServiceStack.Text; | |
var json = "{\"Confirmations\":[{\"ChangeId\":126552616,\"Confirmed\":true}]}"; | |
[Route("/confirmations", "PUT")] | |
public class PutConfirmed : IReturn<PutConfirmedResponse> |