Microsoft、「基礎C#認定資格」を公開 無料でC#が学べる35時間分のトレーニングコースも:freeCodeCampと提携 Microsoftは、freeCodeCampと提携してC#の認定資格である「Foundational C# Certification」を公開した。C#プログラミングの基礎を包括的に学べる35時間のコースも含まれている。
前提環境 データベースが存在している App.ConfigにConnectionStringが記述されている 対象テーブル 以下のテーブルが格納されているデータベースがソリューション内に存在する。 App.Config ConnectionStringとして、以下の内容が記載されているとする。 プログラム側での操作 参照を追加 ConnectionStringの取得 データ一覧の表示 参照を追加 "System.Configuration"名前空間を"参照設定"に追加する。この際、"System.Configuration"名前空間を追加しないと"System.Configuration.ConfigurationManager"が参照できない*1。 ConnectionStringの取得 App.Configで記述したConnectionStringのname属性を使用して、C#プログラ
Windows認証 "Persist Security Info=False;Integrated Security=SSPI;Data Source=ServerName\\InstanceName" SQLServer認証 "Persist Security Info=False;User ID=user;Password=pass;Initial Catalog=AdventureWorks;Server=serverIP\\InstaceName" 【Persist Security Info】 規定はFalse true または yes に設定すると、ユーザー ID やパスワードなどのセキュリティ関連情報を、接続を開いた後にその接続から取得できる 【Integrated Security または Trusted_Connection】 Windows 認証 (統合セキュリティ)
まずはシリアライズ。方法は、[Serializable]を付けるだけ。 例として、文字列をバイト配列で保持するシリアライズクラスを適当に書いてみた。 using System; using System.Collections.Generic; using System.Text; namespace SandBox { [Serializable] public class SerializedByteArray { private byte[] data; public SerializedByteArray(string str) { this.data = Encoding.Unicode.GetBytes(str); } public string Text { get { return Encoding.Unicode.GetString(data); } } /// <sum
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く