This file contains hidden or 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.Data; | |
using System.Collections.Generic; | |
using System.Data.SqlClient; | |
namespace KntLibrary.DAO | |
{ | |
public sealed class ExecuteCommand | |
{ | |
public ExecuteCommand() { } |
This file contains hidden or 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
#include <stdio.h> | |
int main(void) | |
{ | |
printf("Hello. Enjoy C Programing!!\n"); | |
return 0; | |
} |
This file contains hidden or 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; | |
class MainProgram | |
{ | |
static void Main() | |
{ | |
//インスタンス化されたクラスは、オブジェクト毎に情報を保持する。 | |
var instance1 = new InstanceObject(); | |
instance1.Name = "Yamada"; |
This file contains hidden or 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.Data.SQLite; | |
using System.IO; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ | |
private static readonly string FilePath = @"E:\Users\Desktop\SampleDB.db"; | |
This file contains hidden or 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
// DataTable & DataSetは列名の指定と型のコンバート処理が発生して冗長 | |
// データ構造を柔軟にかつインテリセンスで出てくれるように操作できないかと思って作ってみました。 | |
// DBでList<T>で取得するには、LINQ to SQLがベスト!?と今のところ考えてます。 | |
// 大雑把にコーディングしたので、利用される方は参考程度で見ていただけたらありがたいです。 | |
// DataGridViewで生成した列とバインドしたい場合は、デザイナからDataPropertyNameに格納するプロパティ名を記述することでバインド可能です。 | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; |
This file contains hidden or 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.ComponentModel; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Windows.Forms; | |
namespace Usercontrols |
This file contains hidden or 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.Configuration; | |
using System.IO; | |
using System.Text; | |
namespace LogFilerSample | |
{ | |
class Program | |
{ | |
private static readonly string _filePath = ConfigurationManager.AppSettings["LogFilePath"]; |
This file contains hidden or 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
/// <summary> | |
/// 税込金額取得 | |
/// </summary> | |
public decimal CalcIncludingPrice(decimal price, decimal taxRate) | |
{ | |
return price * (100 + taxRate) / 100; | |
} |
This file contains hidden or 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.Data; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Text; | |
//T-SQLのテーブル型変数を引数にしたプロシージャへデータを渡すサンプル | |
//List<T>で渡したいけどダメらしい… | |
namespace ADO_StoredProcedure_sample |
This file contains hidden or 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.Data; | |
using System.Data.SqlClient; | |
namespace StoredProcedureSelect | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
OlderNewer