搜尋此網誌

顯示具有 NET Framework 標籤的文章。 顯示所有文章
顯示具有 NET Framework 標籤的文章。 顯示所有文章

2017-03-24

ConfigurationManager & 組態檔

0 意見
Configuration file schema for the .NET Framework
Web Settings Schema
IIS Configuration Reference

ASP.NET Configuration Overview
Configuration File Schema for the .NET Framework
system.web Element (ASP.NET Settings Schema)
system.web.extensions Element (ASP.NET Settings Schema)
System.Web.Configuration ProcessModelSection

[VisualStudio] Windows專案中找不到ConfigurationManager類別
[WinForm]Windows程式(非網頁),如何從app.config檔讀取資料庫連結字串(ConnectionString)
透過 Application存放資料庫的連結字串(ConnectionString)

MSDN ConfigurationManager 屬性

System.Configuration.ConfigurationSettings.AppSettings
This method is obsolete, it has been replaced by System.Configuration!
System.Configuration.ConfigurationManager.AppSettings
MSDN 使用應用程式設定和使用者設定

Settings.settings
[C#.NET][VB.NET] 應用程式組態設定檔 / Application Configurable File (一)
[C#.NET][VB.NET] 應用程式組態設定檔 / Application Configurable File (二)

Easier .NET settings ***

[C#] 善用ApplicationSettings儲存設定值

讀寫 INI 檔案

C# 如何定義全域變數
怎樣宣告一個變數為全域變數呢?

string key1 = System.Web.Configuration.WebConfigurationManager.AppSettings["key1"];
string key2 = System.Configuration.ConfigurationManager.AppSettings["key2"];
[工具介紹] web.config 的視覺化工具
configSections 的 section 項目 (一般設定結構描述)

[ASP.NET]撰寫自己的 Configuration 區段 Part 1:不要再賴在 appSettings 的屋簷下了,寫個自己的 Configuration 區段吧~
[ASP.NET]撰寫自己的 Configuration 區段 Part 2: 將自己的組態組織成一個 Group
[ASP.NET]撰寫自己的 Configuration 區段 Part 3: 自訂組態集合
Custom Configuration Sections in 3 Easy Steps
Adding and accessing custom sections in your C# App.config
Creating a Custom Configuration Section in C#

System.Configuration 命名空間
HOW TO:使用 ConfigurationSection 建立自訂組態區段
ConfigurationElement 類別
ASP.NET 組態邏輯模型

ASP.NET 組態檔結構 (區段和區段處理常式)

ASP.NET C# app.config與web.config的增加、修改、刪除操作
Creating a Custom Configuration Section in C#


How do I check if Debug is enabled in web.config




Configuration Transform *****
SlowCheetah - XML Transforms Free (它不會幫你產生 .csproj 裡的設定,要自己手動加入,可改用上面那套)
讓主控台應用程式的 App.config 也有 Debug 和 Release 自動置換的功能
Using Config Transformations in a non-Web Project




Using T4 to Create an AppSettings Wrapper, Part 1

ASP.NET MVC: Keep Private Settings Out of Source Control

Dynamic Connection String

2016-08-29

.Net 讀寫 Excel, XML, PDF

0 意見
ASP.NET 2.0 匯出資料到Excel的簡單作法
如何用 C# 將資料匯出到 Excel
[原創]C#通過引用Office Excel (2007) 組件實現對Excel文件的操作


MSDN
Office (2007) Open XML 文件格式簡介
如何操作 Office Open XML 格式文檔
Trying to create Excel 2007 doc using Asp.Net and C#
Office Open XML Formats: Inserting Values into Excel 2007 Cells
Office Open XML Formats: Retrieving Excel 2007 Cell Values
Office Open XML Formats: Retrieving Lists of Excel 2007 Worksheets
Using LINQ to Query Tables in Excel 2007


Office Development with Visual Studio
Open XML Developer Center
2007 Office System Sample: Open XML File Format Code Snippets for Visual Studio 2005
2007 Office System Sample: Open XML Format SDK 2.0 Code Snippets for Visual Studio 2008
2007 Office System Document: Open XML Developer Map
2007 Office System: XML Schema Reference
2007 Office System Sample: Manipulating Office Open XML Formats Files
Open XML SDK 2.0 for Microsoft Office
Open XML Format SDK 1.0




NPOI
POI is an open source project which can help you read/write xls, doc, ppt files.
在 Server 端存取 Excel 檔案的利器:NPOI Library
Creating Excel spreadsheets .XLS and .XLSX in C#
NPOI 1.2教程(目錄)
在 Server 端存取 Excel 檔案的利器:NPOI Library v1.21(改寫成VB範例)
NPOI Library + DataReader,將資料表的資料,輸出到 Excel檔案內
透過 NPOI輸出 Excel,使用中文檔名


[NPOI] 輕鬆地將 GridView 匯出成試算表
[NPOI] 輕鬆地將 GridView 匯出成試算表-修正版

讀取 Excel 你還在用 NPOI 嗎?快來試試 LinqToExcel

從工作表資料建立 XML 資料檔案和 XML 結構描述檔案
在 DataSet 中使用 XML
A Very Easy to Use Excel XML Export Library
Library to Generate Excel XML Workbooks in .NET

[C#] 屬性中的屬性: 自訂 Attributes

C# 寫Excel 代碼
c#中高效的excel導入sqlserver的方法
C# WinForm產出Excel報表
[C#]WinForm中DataGrid擴展 - 導出Excel文件(1)
[C#]WinForm中DataGrid擴展 - 快速導出Excel文件 (1)(續)

C# DataSet和Excel之間導入導出
如何將dataSet中的數據導入到Excel文件(*.xls)整理

Consuming ADO.NET DataSets in the Microsoft Office System

How To Read XML Data into a DataSet by Using Visual C# .NET
How To Persist an ADO.NET DataSet as XML by Using Visual C# .NET
C# 讀取XML使用XPath及Linq

從EXCEL自訂一個XSD
C# WinForm產出Excel報表

[C#][WebForm]Excel to GridView

[ASP.net WebForm] 把Excel資料匯入資料庫的懶人Code分享 - SQL Server篇
[ASP.net WebForm] 把Excel資料匯入資料庫的懶人Code分享 - NPOI篇
[ASP.net] 把資料庫資料匯出成Excel給Client端下載(底層ADO.net方式)
[ASP.net WebForm] 把Excel資料匯入資料庫的懶人Code分享 - Microsoft.office.Interop.Excel篇
[ASP.net/MSSQL] 讀寫Office Excel之前要做的相關設定

[C# .Net] Microsoft.Office.Interop.Excel 讀 / 寫 Excel 語法概全
[C# .Net] 使用 Microsoft.Office.Interop.Excel 讀 / 寫 Excel 2010

ASP.NET 如何設定強制下載檔案並正確處理中文檔名的問題


使用ASP .NET (C#) 產生PDF檔的好幫手—iTextSharp library (上)
使用ASP .NET (C#) 產生PDF檔的好幫手—iTextSharp library (下)

[C#] 網頁Html轉PDF檔(一行程式碼解決)
[ASP.net MVC] 在Web專案上使用Pechkin套件將網頁轉成PDF檔
RazorPDF Export View as PDF in ASP.NET MVC
[ASP.NET MVC]轉換URL為PDF

PDF Make
Generate PDF Using PDF Make And AngularJS
PDF File Analyzer With C# Parsing Classes

Export Gridview to PDF in ASP.Net

[Office 2010 開發系列][C#] Word 轉換 XPS & PDF 格式一定要開啟 Word 2010 才能轉檔嗎? 點點點...就要搞定它!
Creating PDF Tables using C# (.NET 2.0) and iTextSharp
C# - Generate and Deliver PDF Files On-Demand from a Template Using iTextSharp
Points to keep in mind when working with the iTextSharp HTML to PDF converter (HTMLWorker)
Generate a PDF from an ASP.NET Web Page using the iTextSharp XMLWorker Namespace

PDF File Writer C# Class Library

Ghostscript.NET
要先安裝 Ghostscript
SendToPrinterSample PDF 傳送到印表機列印
Printing PDF using Ghostscript in C#

Free .NET Spreadsheet Control

Reading and Writing to Excel files using WPF 4.5

A Dynamic XML API

Create and Update XML File

XML Notepad

2015-02-11

.NET Framework 範例與參考

0 意見
Visual Studio and .NET Framework Documentation (ISO image)6/10/2014


MSDN 開發人員程式碼範例:透過程式碼學習

.NET Framework 類別庫
.NET Framework 的組態檔結構描述
開發類別庫的設計方針
.NET Framework 字彙表入口網站

閱讀 .NET Framework 進階內容
Managed Extensibility Framework (MEF)

Links to deployment guides for all versions of the .NET Framework

[研究] .NET Framework 4.0、4.5、4.5.1、4.5.2 關聯研究




Roslyn
.NET Framework source code online

.NET Compiler Platform ("Roslyn")
Taking a tour of Roslyn***
Enabling the .NET Compiler Platform (“Roslyn”) in ASP.NET applications
Announcing the new Roslyn-powered .NET Framework Reference Source
.NET Developer Tooling: The Roslyn Revolution
Visualizing Roslyn Syntax Trees
Debugging Deeper through Reference Source

初探 Roslyn 編譯器平台 (1): 從認識到使用 保哥的分享




你必须知道的.NET

说说.NET反编译工具

.NET Portability Analyzer Extension
介绍.NET 开发必备工具 .NET Portability Analyzer

MEF

0 意見
Managed Extensibility Framework (MEF)
Managed Extensibility Framework - Documentation

在 .NET 4 中使用托管可扩展性框架构建可组合的应用程序
应用程序可扩展性:MEF 对 IoC

[C#]MEF開發系列 - Managed Extensibility Framework(MEF)的概念與簡介
[.NET]透過 Managed Extensibility Framework (MEF) 建立可擴充及可客製的系統

深入MEF框架 (一) 基本概念
深入MEF框架 (二)契约与导入、导出

[.NET] 浅谈可扩展性框架:MEF

MEF程序设计指南

.NET 4 实践 - 使用dynamic 和MEF实现轻量级的 AOP 组件

MEF 2 Preview Beginners Guide

Windows Forms Modular App Using MEF
MEF Logger – Creating plug-ins using MEF

扩展NerdDinner:为ASP.NET MVC添加MEF和插件
ASP.NET MVC Extensibility with MEF

Using a Plugin-Based Application

Application Framework

0 意見
Building Application Framework with C#

ASP.NET Boilerplate
.NET的微型Web框架 Nancy
Cinchoo
articles

Nido
Gain Coding Speed with Nido (FREE) Framework .NET/ C#
Architecture Guide: ASP.NET MVC Framework + N-tier + Entity Framework and Many More
ASP.NET C# Tutorial - Development with Nido Framework for Dummies

VITA

CSLA .NET

AForge.NET

2014-10-23

Entity Framework

0 意見
MSDN
ASP.NET Data Access - Recommended Resources
ADO.NET Entity Framework
Entity Data Model 工具
Entity Framework (EF) Documentation
EF Power Tools

Code First Migrate
Config File Settings

[料理佳餚] 使用 Entity Framework Code First 應該要知道的 TPH、TPT、TPC

ObjectContext
EntityFunctions

Entities.Configuration.AutoDetectChangesEnabled = true;
Entities.Configuration.ValidateOnSaveEnabled = true;




Data Access Hands-on Labs

Entity Framework Tutorial

Entity Framework Tutorial for Beginners
Entity Framework快速入门--索引贴
Entity Framework 快速上手 & 學習資源整理
ADO.Net Entity Framework
SQL Server 2008 Entity Data Model 和 Linq to Entities
米米貓學開發

ADO.NET Entity Framework 概觀
首次接觸 ADO.NET Entity Framework
讀寫 ADO.NET Entity Framework
由 LINQ 存取 ADO.NET 物件
整合 ADO.NET Entity Framework 到應用程式中

[C#] 取得欄位的資料標記 Data Annotation from Metadata Class

Entity Framework Sample Provider
Custom ORM - Map your entity with DataSet/DataTable/DataReader

ADO.Net Entity Framework - Entity Data Model
ADO.Net Entity Framework - 簡易資料查詢





Tips for Updating and Refactoring Your Entity Framework Code
Tips for Updating and Refactoring Your Entity Framework Code, Part 2

Building the Business Logic Layer classes with Entity Framework and Code First
Various strategies to initialize Database in Entity Framework

EF Designer Code Generation Templates
Entity Framework Repository & Unit of Work T4 Template
Using T4 templates in Entity framework





Writing SQL queries for entities
Entity Framework Automatic Detect Changes

DbSetMigrationsExtensions.AddOrUpdate
How to seed data with AddOrUpdate with a complex key in EF 4.3

Add/Attach and Entity States
MERGE-like function in Entity Framework
Update Row if it Exists Else Insert Logic with Entity Framework

Entity Framework and slow bulk INSERTs
Prefixing ID columns with the table name in Entity Framework
Executing Raw SQL Queries using Entity Framework
Working with Stored Procedures in Entity Framework - Part 1
Calling Stored Procedures from Entity Framework

Entity Framework projections to Immutable Types (IEnumerable vs IQueryable)

Implementing a WCF Service with Entity Framework (v4.5)

Performing Asynchronous Operations Using Entity Framework

Domain modeling with Entity Framework scorecard

Entity Validation and the Entity Framework – Part 1
Entity Validation and the Entity Framework – Part 2
Update: Entity Framework Generic Data Access

Social Club: Sample application using WinForms, C#.NET, ADO.NET and MS Access
SocialClub: A Sample application using C#.NET, Entity Framework 5 and LocalDb

Using the Repository Pattern with ASP.NET MVC and Entity Framework




Code first migration commands for Entity Framework
EF Code First Migrations Deployment to an Azure Cloud Service

Event Calendar with Entity Framework: Quick Guide and Sample

Seeding Entity Framework Database from CSV

Missing EF Feature Workarounds: Cascade delete orphans
Missing EF Feature Workarounds: Encapsulated collections

Avoid many-to-many mappings in ORMs

Catching Bad Data in Entity Framework




Entity Framework Refresh context?
[C#.NET][Entity Framework] 快取查詢與 DbEntityEntry.Reload
[C#.NET][Entity Framework] 幾個提升 EF 效能的方法

Entity Framework Performance and What You Can Do About It
91 FB 解說



EntityFramework.BulkInsert
EntityFramework.Extended