This file contains 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 System.Collections.Generic; | |
using SQLite; | |
namespace GuideStar.Data | |
{ | |
public class Act : BaseEntity | |
{ | |
[Indexed] |
This file contains 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.Collections.Generic; | |
using System.Text; | |
using System.Web; | |
using log4net; | |
using System.Reflection; | |
using System.Configuration; | |
namespace Ideal.Web | |
{ |
This file contains 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 class InviteList_Hydrated : AbstractIndexCreationTask<InviteList> | |
{ | |
public InviteList_Hydrated() | |
{ | |
Map = docs => from doc in docs select new { doc.Name, doc.Site.Id }; | |
TransformResults = (db, docs) => from doc in docs | |
let Households = ( | |
from hh in doc.Households | |
let household = db.Load<Archant.Wedding.Areas.AddressBook.Models.Household>(hh.Id) |
This file contains 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.Globalization; | |
using Newtonsoft.Json; | |
namespace NodaTime.Serialization.JsonNet | |
{ | |
public class NodaZoneDateTimeConverter : JsonConverter | |
{ | |
public NodaZoneDateTimeConverter() | |
{ |
This file contains 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 Newtonsoft.Json; | |
using NodaTime.ZoneInfoCompiler; | |
namespace NodaTime.Serialization.JsonNet | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; |
This file contains 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 Newtonsoft.Json; | |
using NUnit.Framework; | |
using NodaTime.Serialization.JsonNet; | |
namespace NodaTime.Serialization.Test.JsonNet | |
{ | |
[TestFixture] | |
public class ZonedDateTimeTests | |
{ |
This file contains 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 Newtonsoft.Json; | |
using NUnit.Framework; | |
using NodaTime.Serialization.JsonNet; | |
namespace NodaTime.Serialization.Test.JsonNet | |
{ | |
[TestFixture] | |
public class OffsetTests | |
{ |
This file contains 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.Globalization; | |
using Newtonsoft.Json; | |
namespace NodaTime.Serialization.JsonNet | |
{ | |
public class NodaZoneDateTimeConverter : JsonConverter | |
{ | |
public NodaZoneDateTimeConverter() | |
{ |
This file contains 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.Globalization; | |
using Newtonsoft.Json; | |
namespace NodaTime.Serialization.JsonNet | |
{ | |
public class NodaZoneDateTimeConverter : JsonConverter | |
{ | |
public NodaZoneDateTimeConverter() | |
{ |
This file contains 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
private Stream ReturnAsStream<T>(T toSerialize) | |
{ | |
var settings = new JsonSerializerSettings { ContractResolver = new CamelCasePropertyNamesContractResolver() }; | |
var json = JsonConvert.SerializeObject(toSerialize, Formatting, settings); | |
WebOperationContext.Current.OutgoingResponse.ContentType = "application/json; charset=utf-8"; | |
return new MemoryStream(System.Text.Encoding.UTF8.GetBytes(json)); | |
} |
OlderNewer