• 課程時長

    33 小時 55 分

  • 課程級別

    初級

  • 授課語言

    中文

這堂課你將會學到

  • 將 TSQL 的各種 Table、Stored Procedure、View、Table Valued Function 無縫接軌到 EF 程式碼
  • 從 Database 到 Entity Framework 並連結到 Unit Of Work 搭配 Repository
  • 透過 NUnit,針對 Unit Of Work 搭配 Repository 來完成未連接及連接測試用 Database 的單元測試
  • 透過 MSTest,針對 Unit Of Work 搭配 Repository 完成未連接及連接測試用 Database 的單元測試,並且了解 NUnit 和 MSTest 的差異和比較

章節目錄

  • 1

    第 1 章 IT工具人學院

    • 單元 2 - ITHandyGuy粉絲團

  • 2

    第 2 章 關於本課程

    • 單元 1 - 本課程講義目錄

    • 單元 2 - 本課程導讀

  • 3

    第 3 章 關於Entity Framework學程 (.NET Framework的子學程)

    • 單元 1 - EF學程簡介Preview01

    • 單元 2 - EF學程簡介Preview01

    • 單元 3 - EF學程簡介Preview02 : 常見的EF開發模式

    • 單元 4 - EF學程簡介Preview02-01 : 介紹TSQL還有相關安裝工具

    • 單元 5 - EF學程簡介Preview02-02 : EF DB First開發模式

    • 單元 6 -EF學程簡介Preview02-03 : EF Code First 開發模式 底下的 Mapping 模式 並且搭配EF Poco Generator

    • 單元 7 - EF學程簡介Preview02-04 : EF Code First 開發模式 底下的 Mapping 和Migration模式

    • 單元 8 - EF學程簡介Preview02-05 : EF Code First 開發模式 底下 保持EF Model Class和Database Table Relationship 的一致性

    • 單元 9 - EF第5和6篇_Poco範例成品介紹

    • 單元 10 - EF第5和6篇_Poco範例成品介紹

  • 4

    第 4 章 工具下載與安裝

    • 單元 1 - 工具下載與安裝

    • 單元 2 - 工具下載與安裝

    • 單元 3 - Visual Studio 2017下載安裝說明

    • 單元 4 - Visual Studio 2017下載安裝說明

    • 單元 5 - 強制刪除資料庫

    • 單元 6 - 強制刪除資料庫

    • 單元 7 - ReStore資料庫from BAK or TSQL,安裝Northwind資料庫,安裝Adventureworks資料庫

    • 單元 8 - ReStore資料庫from BAK or TSQL,安裝Northwind資料庫,安裝Adventureworks資料庫

    • 單元 9 - SQL Server 2019下載與安裝

    • 單元 10 - SQL Server 2019下載與安裝

    • 單元 11 - Visual Studio 2019下載與安裝

    • 單元 12 - Visual Studio 2019下載與安裝

    • 單元 13 - PocoGenerator下載與安裝(VS2019)

    • 單元 14 - PocoGenerator下載與安裝(VS2019)

    • 單元 15 - NUnit3TestAdapter下載與安裝(VS2019)

    • 單元 16 - NUnit3TestAdapter下載與安裝(VS2019)

  • 5

    第 5 章 課前補充 (已上過 "測試第1篇: 入門語法 MSTest V.S. NUnit 溝通單" 的同學請跳過)

    • 單元 1 - 單元測試Tutorial04講義: 使用VS2013Pro了解Code Coverage。Private Method的單元測試。關於Test Exception、Order Tests、Generic Test。使用command line跑MSTest。

    • 單元 2 - Tutorial 04-01: 寫一些Code

    • 單元 3 - Tutorial 04-02: 寫MSTest

    • 單元 4 - Tutorial 04-03: 討論Code Coverage

    • 單元 5 - Tutorial 04-04: 測試Exception

    • 單元 6 - Tutorial 04-05: 測試Private Method

    • 單元 7 - Tutorial 04-06: 使用Ordered Tests

    • 單元 8 - Tutorial 04-07: 使用Generic Tests

    • 單元 9 - Tutorial 04-08: 使用command line跑MSTest

    • 單元 10 - 單元測試Tutorial 15講義: 關於Sorting Test

    • 單元 11 - Tutorial 15-01: 前置作業

    • 單元 12 - Tutorial 15-02: 用NUnit的Order來Sorting Test

    • 單元 13 - Tutorial 15-03: 用MSTest沒太多選擇。透過Merge Tests來Sorting。

    • 單元 14 - Tutorial 15-04: 觀念總結

  • 6

    第 6 章 Data Model和DbContext (課程從這開始)

    • 單元 1 - Tutorial 07講義: 認識UnitOfWork和Repository觀念

    • 單元 2 - Tutorial 07-01: 複習

    • 單元 3 - Tutorial 07-02: 一些ConnectionString和UnitOfWork和Repository觀念

    • 單元 4 - Tutorial 07-03: Database圖表

    • 單元 5 - Tutorial 07-04: All_Demo的TSQL,討論Create Table和Insert Data

    • 單元 6 - Tutorial 07-05: All_Demo的TSQL,討論TSQL View

    • 單元 7 - Tutorial 07-06: All_Demo的TSQL,討論TSQL Stored Procedure

    • 單元 8 - Tutorial 07-07: All_Demo的TSQL,討論TSQL Table Valued Function

    • 單元 9 - Tutorial 07-08: All_Insert的TSQL

    • 單元 10 - Tutorial 07-09: All_TestData的TSQL

    • 單元 11 - Tutorial 07-10: WhatToDo

    • 單元 12 - Tutorial 08講義: 用PoCoGenerator來加速開發EF

    • 單元 13 - Tutorial 08-01: 用PoCoGenerator製造OnlineGameTwo Solution

    • 單元 14 - Tutorial 08-02: 準備OnlineGame Solution,Data

    • 單元 15 - Tutorial 08-03: 準備OnlineGame Solution,UiData

    • 單元 16 - Tutorial 09講義: PoCoGenerator加速開發EF的Table和View

    • 單元 17 - Tutorial 09-01: 理解Domain Entity

    • 單元 18 - Tutorial 09-02: 理解Entity Configuration

    • 單元 19 - Tutorial 09-03: 製作Migration Init

    • 單元 20 - Tutorial 09-04 to 09-05 : 理解View Entity和View Entity Configuration

    • 單元 21 - Tutorial 09-06: 製作Migration View

    • 單元 22 - Tutorial 09-07: UiConsoleApp中的一些StaticMethod

    • 單元 23 - Tutorial 09-08: UiConsoleApp中的DbContextWay

    • 單元 24 - Tutorial 09-09: View Summary

    • 單元 25 - Tutorial 10講義: PoCoGenerator加速開發EF的StoredProcedure

    • 單元 26 - Tutorial 10-01: 理解TSQL Stored Procedure

    • 單元 27 - Tutorial 10-02: 理解DynamicTSQL製造PocoGenerator

    • 單元 28 - Tutorial 10-03: 理解StoredProcedureEntity

    • 單元 29 - Tutorial 10-04: 理解DbContext Interface

    • 單元 30 - Tutorial 10-05: 理解DbContext

    • 單元 31 - Tutorial 10-06: 理解StaticMethodPrint

    • 單元 32 - Tutorial 10-07: 製作DbContextWay.Sp

    • 單元 33 - Tutorial 10-08: 理解MigrationStoredProcedure

    • 單元 34 - Tutorial 10-09: 製作TestConnectionString

    • 單元 35 - Tutorial 11講義: PoCoGenerator加速開發EF的TableValuedFunction

    • 單元 36 - Tutorial 11-01: 理解EF的TableValuedFunction

    • 單元 37 - Tutorial 11-02: UiConsoleApp使用EF的TableValuedFunction

    • 單元 38 - Tutorial 11-03: 理解EF的TableValuedFunctionMigration

    • 單元 39 - Tutorial 11-04: EF的TableValuedFunction結論

  • 7

    第 7 章 DataModelRepository 和 DataModelUnitOfWork

    • 單元 1 - Tutorial 12講義: Data Repository層的Validator

    • 單元 2 - Tutorial 12: Data Repository層的Validator

    • 單元 3 - Tutorial 13講義: Data Repository層的Generic Repository

    • 單元 4 - Tutorial 13-01: 理解Data Repository層的Generic Repository Interface

    • 單元 5 - Tutorial 13-02: 理解Data Repository層的Generic Repository

    • 單元 6 - Tutorial 14講義: Data Repository層的Gamer Repository

    • 單元 7 - Tutorial 14-01: 製作Gamer Repository

    • 單元 8 - Tutorial 14-02: DataRepositoryWay理解GamerValidator

    • 單元 9 - Tutorial 15講義: Data Repository層的Repository Interface和UnitOfWork Interface

    • 單元 10 - Tutorial 15: Data Repository層的Repository Interface和UnitOfWork Interface

    • 單元 11 - Tutorial 16講義: Data Repository層的Repository和UnitOfWork

    • 單元 12 - Tutorial 16-01: Data Repository層的Entity Repository

    • 單元 13 - Tutorial 16-02: Data Repository層的View Repository

    • 單元 14 - Tutorial 16-03: Data Repository層的StoredProcedure和UnitOfWork

    • 單元 15 - Tutorial 17講義: 使用Data Repository層的OnePk Repository

    • 單元 16 - Tutorial 17-01: 使用Data Repository層的OnePk Repository

    • 單元 17 - Tutorial 18講義: 使用Data Repository層的TwoPk Repository

    • 單元 18 - Tutorial 18-01: 使用Data Repository層的TwoPk Repository

    • 單元 19 - Tutorial 19講義: 使用Data Repository層的View Repository

    • 單元 20 - Tutorial 19-01: 使用Data Repository層的View Repository

    • 單元 21 - Tutorial 20講義: 使用Data Repository層的UnitOfWork的Stored Procedure

    • 單元 22 - Tutorial 20-01: 使用Data Repository層的UnitOfWork的Stored Procedure

    • 單元 23 - Tutorial 21講義: 使用Data Repository層的UnitOfWork的Table Valued Function

    • 單元 24 - Tutorial 21-01: 使用Data Repository層的UnitOfWork的Table Valued Function

  • 8

    第 8 章 NUnit的Unit Test測試Data Repository

    • 單元 1 - Tutorial 22講義: 使用FakeDbContext

    • 單元 2 - Tutorial 22: 使用FakeDbContext

    • 單元 3 - Tutorial 23講義: 使用FEntityValidator

    • 單元 4 - Tutorial 23: 使用FEntityValidator

    • 單元 5 - Tutorial 24講義: NUnit的Unit Test測試TestDataNUnitRepository的EntityRepository

    • 單元 6 - Tutorial 24-01: 理解TestDataNUnitRepository的AreaRepositoryTest

    • 單元 7 - Tutorial 24-02: 理解TestDataNUnitRepository的GamerDetailRepositoryTest

    • 單元 8 - Tutorial 24-03: 理解TestDataNUnitRepository的GamerRepositoryTest

    • 單元 9 - Tutorial 24-04: 理解TestDataNUnitRepository的GamerSkillRepositoryTest

    • 單元 10 - Tutorial 24-05: 理解TestDataNUnitRepository的MagicRepositoryTest

    • 單元 11 - Tutorial 24-06: 理解TestDataNUnitRepository的SkillRepositoryTest

    • 單元 12 - Tutorial 24-07: 理解TestDataNUnitRepository的TeamRepositoryTest

    • 單元 13 - Tutorial 25講義 NUnit的Unit Test測試TestDataNUnitRepository的ViewRepository

    • 單元 14 - Tutorial 25 NUnit的Unit Test測試TestDataNUnitRepository的ViewRepository

  • 9

    第 9 章 NUnit的Integration Test測試Data Repository

    • 單元 1 - Tutorial 26講義 NUnit的Integration Test測試TestDataNUnitRepository的EntityRepository

    • 單元 2 - Tutorial 26-01: 理解IntegrationTestDataNUnitRepository的AreaRepositoryTest

    • 單元 3 -Tutorial 26-02: 理解IntegrationTestDataNUnitRepository的GamerDetailRepositoryTest

    • 單元 4 -Tutorial 26-03: 理解IntegrationTestDataNUnitRepository的GamerRepositoryTest

    • 單元 5 -Tutorial 26-04: 理解IntegrationTestDataNUnitRepository的GamerSkillRepositoryTest

    • 單元 6 -Tutorial 26-05: 理解IntegrationTestDataNUnitRepository的MagicRepositoryTest

    • 單元 7 -Tutorial 26-06: 理解IntegrationTestDataNUnitRepository的SkillRepositoryTest

    • 單元 8 -Tutorial 26-07: 理解IntegrationTestDataNUnitRepository的TeamRepositoryTest

    • 單元 9 - Tutorial 27講義: NUnit的Integration Test測試TestDataNUnitIntegration的EntityRepository

    • 單元 10 -Tutorial 27: NUnit的Integration Test測試TestDataNUnitIntegration的EntityRepository

    • 單元 11 - Tutorial 28講義: NUnit的Integration Test測試TestDataNUnitIntegration的Table Valued Function

    • 單元 12 -Tutorial 28: NUnit的Integration Test測試TestDataNUnitIntegration的Table Valued Function

    • 單元 13 - Tutorial 29講義: NUnit的Integration Test測試TestDataNUnitIntegration的Stored Procedure

    • 單元 14 - Tutorial 29: NUnit的Integration Test測試TestDataNUnitIntegration的Stored Procedure

  • 10

    第 10 章 MSTest的Unit Test測試Data Repository

    • 單元 1 - Tutorial 30講義: MSTest的Unit Test測試TestDataNUnitRepository的EntityValidator

    • 單元 2 - Tutorial 30: MSTest的Unit Test測試TestDataNUnitRepository的EntityValidator

    • 單元 3 - Tutorial 31講義: MSTest的Unit Test測試TestDataNUnitRepository的EntityRepository

    • 單元 4 - Tutorial 31-01: 理解TestDataNUnitRepository的AreaRepositoryTest

    • 單元 5 - Tutorial 31-02: 理解TestDataNUnitRepository的GamerDetailRepositoryTest

    • 單元 6 - Tutorial 31-03: 理解TestDataNUnitRepository的GamerRepositoryTest

    • 單元 7 - Tutorial 31-04: 理解TestDataNUnitRepository的GamerSkillRepositoryTest

    • 單元 8 - Tutorial 31-05: 理解TestDataNUnitRepository的MagicRepositoryTest

    • 單元 9 - Tutorial 31-06: 理解TestDataNUnitRepository的SkillRepositoryTest

    • 單元 10 - Tutorial 31-07: 理解TestDataNUnitRepository的TeamRepositoryTest

    • 單元 11 - Tutorial 32講義: MSTest的Unit Test測試TestDataNUnitRepository的ViewRepository

    • 單元 12 - Tutorial 32: MSTest的Unit Test測試TestDataNUnitRepository的ViewRepository

  • 11

    第 11 章 MSTest的Integration Test測試Data Repository

    • 單元 1 - Tutorial 33講義: MSTest的Integration Test測試TestDataNUnitIntegration的EntityValidator

    • 單元 2 - Tutorial 33-01: 理解IntegrationTestDataNUnitRepository的AreaRepositoryTest

    • 單元 3 - Tutorial 33-02: 理解IntegrationTestDataNUnitRepository的GamerDetailRepositoryTest

    • 單元 4 - Tutorial 33-03: 理解IntegrationTestDataNUnitRepository的GamerRepositoryTest

    • 單元 5 -Tutorial 33-04: 理解IntegrationTestDataNUnitRepository的GamerSkillRepositoryTest

    • 單元 6 - Tutorial 33-05: 理解IntegrationTestDataNUnitRepository的MagicRepositoryTest

    • 單元 7 - Tutorial 33-06: 理解IntegrationTestDataNUnitRepository的SkillRepositoryTest

    • 單元 8 -Tutorial 33-07: 理解IntegrationTestDataNUnitRepository的TeamRepositoryTest

    • 單元 9 -Tutorial 34講義: MSTest的Integration Test測試TestDataNUnitIntegration的EntityRepository

    • 單元 10 - Tutorial 34: MSTest的Integration Test測試TestDataNUnitIntegration的EntityRepository

    • 單元 11 -Tutorial 35講義: MSTest的Integration Test測試TestDataNUnitIntegration的Table Valued Function

    • 單元 12 -Tutorial 35: MSTest的Integration Test測試TestDataNUnitIntegration的Table Valued Function

    • 單元 13 -Tutorial 36講義: MSTest的Integration Test測試TestDataNUnitIntegration的Stored Procedure

    • 單元 14 -Tutorial 36: MSTest的Integration Test測試TestDataNUnitIntegration的Stored Procedure