Giter Site home page Giter Site logo

datamaputility's Introduction

DataMapUtility

將 ADO.Net 資料物件與清單物件轉換方法

DataMapUtility

提供資料物件轉換方法類別庫專案

DataTable、DataReader 轉換成指定型態的集合物件。

集合物件轉換成 DataTable 物件。

支援 Nullable 資料型態轉換,進行集合物件轉換時僅轉換集合物件有的屬性。

靜態方法 說明
MapToTable(IEnumerable) 將集合物件轉換成 DataTable 物件,若當物件為 Null 時,回傳僅包含物件屬性對應 DataColumn 設定的 DataTable 物件,資料列數量為 0。
MapFromTable(DataTable) 將 DataTable 轉換成指定型態的集合物件。
MapFromReader(IDataReader) 將 IDataReader 轉換成指定型態的集合物件。

DataMapUtility.Test

測試 DataMapUtility 類別的測試專案

DataMapUtility 提供的轉換方法可在此專案取得使用範例。

檔案 說明
Test_MapFromReader.cs 因 IDataReader 物件無法透過初始化方式建立。使用 RhinoMocks 套件 Mock 出 IDataReader 模擬物件進行 MapFromReader 方法測試。

datamaputility's People

Contributors

txstudio avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.