简体   繁体   English

学习CSLA.NET框架

[英]learning CSLA.NET framework

什么是学习CSLA框架的良好起点。

Excerpt from an article - 摘自文章 -

CSLA is cool -- the thing I always tell folks to keep in mind is what I see as its central philosophy, that ALL business logic should be encapsulated in business objects (to as great an extent as is realistically possible, at least). CSLA很酷 - 我总是告诉人们要记住的是我认为其核心理念,即所有业务逻辑应该封装在业务对象中(至少在现实可能的范围内)。 "Business logic" in CSLA includes everything from validation to persistence -- objects are required to know how to valdate their own properties, and also how to persist themselves. CSLA中的“业务逻辑”包括从验证到持久性的所有内容 - 对象需要知道如何验证自己的属性,以及如何自我保持。 With this in mind, the CSLA framework gives you lots of tools to help make it less painful to encapsulate this amount of business logic in business objects. 考虑到这一点,CSLA框架为您提供了许多工具,可以帮助您轻松地将这些业务逻辑封装在业务对象中。 I like CSLA because it helps enforce rigor in OO design. 我喜欢CSLA,因为它有助于在OO设计中加强严谨性。

As far as resources, I'd recommend checking out the "Dot Net Rocks TV" episodes that Rocky Lhotka has done -- they are screencasts, and he goes through the reference app that he ships with CSLA in the first few, then goes into detailed implementations with specific architectures in later ones. 就资源而言,我建议查看Rocky Lhotka所做的“Dot Net Rocks TV”剧集 - 他们是截屏视频,并且他通过他在前几个中与CSLA一起提供的参考应用程序,然后进入在后面的具体架构中的详细实现。

The information on CSLA.NET 2.0 is definitely still relevant, 3.5 is primarily just leveraging the new 3.5 framework features (WCF, etc.) in the context of the basic architecture. 关于CSLA.NET 2.0的信息肯定仍然相关,3.5主要是在基本架构的上下文中利用新的3.5框架功能(WCF等)。

Orignal article is from here - http://forums.asp.net/t/1307040.aspx Orignal文章来自这里 - http://forums.asp.net/t/1307040.aspx

I guess buying the book would be a start. 我想买这本书将是一个开始。 That's what we did. 这就是我们所做的。

Buying the book is very useful. 购买这本书非常有用。 Not only will you get information about how to use CSLA.net but also Rocky explains his decisions and his motives. 您不仅可以获得有关如何使用CSLA.net的信息,而且Rocky还会解释他的决定和动机。 Note that there is no book for the current (4.0) release. 请注意,当前(4.0)版本没有书籍。 For the 3.8 relase you can find the book here . 对于3.8版本,您可以在这里找到这本书。 There are some major changes between 3.8 and 4.0 regarding the validation rules. 3.8和4.0之间在验证规则方面有一些重大变化。 You can find some explanations about these changes on Rocky's Blog . 你可以在Rocky的Blog上找到关于这些变化的一些解释。

Furthermore, because his framework is completely free, buying the book is a good way to sponsor the work Rocky is doing by creating the framework 此外,因为他的框架完全免费,所以购买这本书是赞助Rocky通过创建框架所做工作的好方法

I would purchase Rocky's book 'Expert C# 2008 Business Objects' which covers CSLA 3.6. 我会购买Rocky的书“Expert C#2008 Business Objects”,其中涵盖了CSLA 3.6。

For CSLA 4, Rocky has started a series of ebooks which you can purchase. 对于CSLA 4,Rocky已经开始推出一系列您可以购买的电子书。 You can find a summary here - http://www.lhotka.net/weblog/UsingCSLA4SeriesOutline.aspx . 你可以在这里找到一个摘要 - http://www.lhotka.net/weblog/UsingCSLA4SeriesOutline.aspx The first ebook which provides an overview of CSLA 4 is available here: http://www.lhotka.net/weblog/UsingCSLA4CSLANETOverviewAvailable.aspx . 第一本提供CSLA 4概述的电子书可在此处获取: http ://www.lhotka.net/weblog/UsingCSLA4CSLANETOverviewAvailable.aspx。

Rocky also has video series available for purchase on his site, which include a 3.8 series, and a 4 with MVVM series. Rocky还有他的网站上可以购买的视频系列,其中包括3.8系列和4系列MVVM系列。

CSLA is described in detail here . 这里详细描述了CSLA。 The new book and videos is a great starting point. 新书视频是一个很好的起点。 As a great compliment to the book I would recommend checking out our CSLA 3.8 and 4.0 templates . 作为本书的一大赞美,我建议您查看我们的CSLA 3.8和4.0模板 They come in both a VB.NET and a C# flavor. 它们同时具有VB.NET和C#风格。

Rocky recommends using a Code Generator, and we have the leading set of templates, that will get you up and running in no time. Rocky建议使用代码生成器,我们拥有一套领先的模板,可以让您立即启动并运行。

Thanks -Blake Niemyjski (Author of the CodeSmith CSLA Templates ) 谢谢-Blake Niemyjski( CodeSmith CSLA模板的作者

Nothing like a deadline and a user wanting to see something .... Set a target, get one of the working demos and 'rework' into what you need. 没有什么比最后期限和想要看到某些东西的用户......设定一个目标,获得一个工作演示和'返工'到你需要的东西。 Have the 2008 book (if your using 3.8x) or PDF just being release if your going with versio 4 from now Jan 2011. 如果您从2011年1月开始使用versio 4,请将2008年的书(如果您使用3.8x)或PDF正在发布。

If your using 3.8 with tracker app (WPF and ASP) where easy enough for me 3 years ago, and were my start (we've built complex WPF and Silverlight add for my business). 如果你使用3.8跟踪器应用程序(WPF和ASP)3年前对我来说很容易,并且是我的开始(我们已经为我的业务构建了复杂的WPF和Silverlight)。

Good luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM