Skip to content

Instantly share code, notes, and snippets.

View Suchiman's full-sized avatar

Robin Sue Suchiman

  • Germany
  • 07:47 (UTC +01:00)
View GitHub Profile
One or more validation errors were detected during model generation:
Customer_User_Source: : Multiplicity is not valid in Role 'Customer_User_Source' in relationship 'Customer_User'. Because the Dependent Role refers to the key properties, the upper bound of the multiplicity of the Dependent Role must be '1'.
Customer_User_Target_Customer_User_Source: : The types of all properties in the Dependent Role of a referential constraint must be the same as the corresponding property types in the Principal Role. The type of property 'Id' on entity 'Customer' does not match the type of property 'Id' on entity 'IdentityUser' in the referential constraint 'Customer_User'.
using System;
using System.Data.SQLite;
namespace StringInterpolationSQL
{
class Program
{
private static SQLiteConnection connection;
static void Main(string[] args)
{
@Suchiman
Suchiman / frob.cs
Last active August 29, 2015 14:11 — forked from jakesays-old/frob.cs
ParseClaimIdentifiers(@ref, claim)
.Match(ReferenceQualifier.SpecialPaymentReferenceNumber,
r => claim.ServiceAuthExceptionCode = ServiceAuthExceptionCodeConverter.FromAnsi(r).Adapt())
.Match(ReferenceQualifier.OriginalReferenceNumber,
r => claim.OriginalPayerClaimControlNumber = r)
.Match(ReferenceQualifier.ReferralNumber,
r => claim.ReferralNumber = r)
.Match(ReferenceQualifier.PriorAuthorizationNumber,
r => claim.PriorAuthorization = r)
.Match(ReferenceQualifier.RepricedClaimReferenceNumber,
class XMPPXmlWriter : XmlTextWriter
{
Action<bool> WriteEndStartTag;
public XMPPXmlWriter(Stream w, Encoding encoding)
: base(w, encoding)
{
Type baseClass = typeof(XmlTextWriter);
MethodInfo WEST = baseClass.GetMethod("WriteEndStartTag", BindingFlags.Instance | BindingFlags.NonPublic);
-- var something = db.Product.Where(x => x.Name.StartsWith("wtf")).Select(x => new { some = x.ProductID }).ToList();
SELECT
[t1].[ProductID]
FROM
[Products] [t1]
WHERE
[t1].[ProductName] LIKE 'wtf%'
using LinqToDB;
using LinqToDB.Data;
using LinqToDB.DataProvider.SQLite;
using LinqToDB.Mapping;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
using System;
using System.Configuration;
using System.Linq;
namespace Some.Namespace
{
public static class ConfigHelper
{
private static Configuration conf = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);