Some thoughts on my own O/R Mapping or Code Generation tools
生活随笔
收集整理的這篇文章主要介紹了
Some thoughts on my own O/R Mapping or Code Generation tools
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Code tells: Categoryhas_many Forums,Name,nSortOrder,Forumbelongs_to Category,has_many Users as Moderators,has_many! Threads,has_many Posts,has_one? Post as LastPost : Last of Posts on tPostOn,Name,Description?,nTopics,nPosts,tLastPostOn?,LastPostAuthor?,nSortOrder,canRead,canReply,canTopic,Threadbelongs_to Forum,belongs_to User as Starter,has_many! Posts,has_one Post as LastPost : Last of Posts on tPostOn,Subject,tStartOn,tLastReplyOn,isLocked,isSticky,Posthas_one User as Author,belongs_to Thread,AuthorName,AuthorIp?,AuthorEmail?,Message max,isHidingSmilies,tPostOn,tEditOn?,EditedBy?,Userhas_many! Threads,has_many! Posts,belongs_to UserGroup as Group,external Id,Name,Phone : {PhoneNumber}isUsingAvantar,isUsingSignture,Signature? 500,nTopicsPerPage,nPostsPerPage,EmailSetting : EmailSettings (ShowEmail, HideEmailAllowForm, NoContact)shouldShowSmilies,shouldShowImages,shouldShowImagesInSignature,shouldShowSignatures,ForumTheme,nPosts,tLastPostOn,Lengendshas_many! = could be paged;? = could be null,external = user asigned primary keyFieldName = string (255)nFieldName = inttFieldName = datetimecan/is/shouldFieldName = bool: {ClassName} = ClassName (IConvertiable): (A, B, C) = EnumFieldName 500 = string with length<=500: Last/First/Top 100 of Collection on orderBy = no explaination neededhas_***, belongs_to = not properties but method, lazy loaded for everversion tracking:+ for new field,- for old field,* for modified field, out dated line should not be deleted?code generating: both SQL and DAL, abstract BL(Entities included), skeleton for real BLwhy my own?I know what will happen.I know what is doable.I write mine faster than learning others.
轉載于:https://www.cnblogs.com/deerchao/archive/2007/04/17/716135.html
總結
以上是生活随笔為你收集整理的Some thoughts on my own O/R Mapping or Code Generation tools的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SQLite B+树实现代码
- 下一篇: [翻译] 构建完美的WPF开发工作站