Skip to content

Instantly share code, notes, and snippets.

View jwChung's full-sized avatar

Jin-Wook Chung jwChung

View GitHub Profile
@jwChung
jwChung / CollectingPropertiesTest.cs
Last active August 29, 2015 14:04
ExpressionVisitor demo
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Reflection;
using Xunit;
namespace ClassLibrary1
{
public class CollectingPropertiesTest
{
@jwChung
jwChung / exception1
Last active December 25, 2015 11:49
exception from slipp
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: could not execute statement; SQL [n/a]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not execute statement
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
@jwChung
jwChung / gist:5812597
Created June 19, 2013 08:22
SerializableMultidimensionalArray
public class SerializableMultidimensionalArray : IXmlSerializable
{
private readonly int[,] array = new int[3, 2];
public int this[int i, int j]
{
get
{
return this.array[i, j];
}
@jwChung
jwChung / gist:5626059
Last active December 17, 2015 14:39
EF question
public class QueryingFindingEntities
{
[Fact]
public void FindingEntityByPrimaryKey()
{
using (var context = new BlogContext())
{
int execuedCount = 0;
context.RegisterCallbackStateChanged(ConnectionState.Open, () => execuedCount++);