Some thoughts on my own O/R Mapping or Code Generation tools
2007-04-17 02:13
411 查看
Code tells:
Category has_many Forums, Name, nSortOrder, Forum belongs_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, Thread belongs_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, Post has_one User as Author, belongs_to Thread, AuthorName, AuthorIp?, AuthorEmail?, Message max, isHidingSmilies, tPostOn, tEditOn?, EditedBy?, User has_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, Lengends has_many! = could be paged; ? = could be null, external = user asigned primary key FieldName = string (255) nFieldName = int tFieldName = datetime can/is/shouldFieldName = bool : {ClassName} = ClassName (IConvertiable) : (A, B, C) = Enum FieldName 500 = string with length<=500 : Last/First/Top 100 of Collection on orderBy = no explaination needed has_***, belongs_to = not properties but method, lazy loaded for ever version 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 BL why my own? I know what will happen. I know what is doable. I write mine faster than learning others.
相关文章推荐
- Some of my thoughts on life's crossroads.
- some thoughts on life
- How sign the code by own certificate and install the certificate on device.
- Todd.log - a place to keep my thoughts on programming TF-IDF模型的概率解释
- When you copy large files to or from earlier operating systems, the copy operation may be slower than expected on some Windows Vista-based computers
- My Thoughts on Go (1)
- Installing VMware Tools on Kali Linux and Some Debugging Basics
- [导入]How can I run another application or batch file from my Visual C# .NET code?
- Some thoughts on a progress
- Todd.log - a place to keep my thoughts on programming
- How sign the code by own certificate and install the certificate on device.
- My thoughts on the vm role
- BUG: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
- 对IT服务的一些思考(Some Thoughts on IT services)
- 【随】Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack 问题解决。
- Run CUDA or PTX Code on GPU
- Some Thoughts on Application Engine Temporary Tables
- Java-如何定制自己的工具库: mytools or myutil
- .NET Core Web Application 中,从Nuget添加 Web.CodeGeneration.Tools 报错的问题
- How sign the code by own certificate and install the certificate on device.