Skip to content

Instantly share code, notes, and snippets.

@takiru
takiru / 1.Header
Last active December 25, 2017 04:37
[Oralce]DatePackage
CREATE OR REPLACE PACKAGE PKG_DATE
/**
* 日付制御用パッケージ
* 日付関係の制御を行います。
*/
IS
-- 日付フォーマットの不正例外
INVALID_DATE_FORMAT EXCEPTION;
/**
@takiru
takiru / ListClassSample.cs
Created December 11, 2017 04:19
List Class Sample
using System;
using System.Collections.Generic;
using System.Text;
namespace ClassLibrary2
{
public class Class1<T> : List<T> where T : IHoge, new()
{
public T CreateNewRow()
{
@takiru
takiru / DataRowExtensions.cs
Last active May 11, 2017 08:05
Injection in the Entity Class from DataTable or DataRow.
using System.Data;
namespace WindowsFormsApp1
{
public static class DataRowExtensions
{
public static T ToEntity<T>(this DataRow row) where T : new()
{
var resultData = new T();
var t = resultData.GetType();
@takiru
takiru / MetDateTimePicker.cs
Last active May 26, 2018 08:05
Nullable, ReadOnly, Changeable ForeColor, Changeable BackColor DateTimePicker
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace Metroit.Windows.Forms
{
/// <summary>