In this article, I talk about the "UML Model/Relation Db Table Mapping Design" for LiteMda.What is "UML Model/Relation Db Table Mapping Design"?-To make the persistation of Domain Objects being transparent to Db Tables, it needs to find a way, as
關於該方案的基本設計思路是這樣的:首先,代碼產生的基礎還是資料庫表,但是,提供一個從XMI產生Tables的工具,以支援從UML類圖到對應Tables的自動產生,並支援以自訂類型作為其他類的屬性的資料類型;接著,基於這些Tables,可以產生映射到DomainObjects及為其增加持久化支援的Xml Profile,Xml Profile For Domain Objects基本和其他的o/r映射的xml檔案類似,Xml Profile For
本文對在ORM中對象間的關聯及其映射到關聯式資料庫表時的預設事務需要做一個整理。對於對象的基本關聯以及對象關聯怎樣映射到關聯式資料庫的表結構,請參見我之前的兩篇文章:[1] UML Model/Relation Db Table Mapping Design For LiteMda - Draft[2] O/R Mapping中對象關係映射解決方案匯總To practise my english writing skill for technical atrticles, the
[More about Teddy's Aspect Weaver][More about AOP]本範例基於Teddy’s Aspect Weaver Version 0.6,示範一個簡單的AOP應用範例,範例中的具體Sample Aspect有:1. SecurityAspect: Add additional security checking before Account.Login.2. MethodSelfIntroduceAspect: Each method’s
基於昨天雙魚座和ccBoy的建議,對LiteMda的設計作了部分修改,主要改變的部分如下:1、不再從Tables產生,而是先從XMI產生一個Xml Profile For Model,再由該Profile產生Tables及其他設定檔和代碼,產生Tables方面計劃採用Provider模式,以使資料庫類型對程式員透明,這樣還有幾點好處,一是解除代碼產生和XMI的耦合,二是,如果有部分中繼資料不能直接從XMI獲得,也可以由使用者在該Profile中補充;2、對於Domain
LiteMDA Design Version 0.2---- A top to bottom MDA/ORM designObjective: High development efficiency Excellent extensibility Thinking in OO/AOP/C# 2.0 Be easy to use1. User Interface (UI) ViewpointBusiness Objects (BO) can only be
In No Buzzword AOP --- When we don't have aop, idior described a property debugging situation.This is the AOP way based on AspectWeaver0.6.DebugPropertyModifyingAspect.cs:using System;using AspectWeaver.Aspects;namespace TestAspects{ public class