博客园中转

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年4月30日

摘要: Google is hosting jQueryUI css at this linkhttps://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery.ui.all.cssIf you look at this code directly, it is importing the css using @importwhich... 阅读全文
posted @ 2012-04-30 22:58 pieux 阅读(760) 评论(0) 推荐(0) 编辑

摘要: HTML标记(THE MARKUP)The HTML structure is going to consist of a main container and some rows that we’ll use to place the left and the right elements. The left and right elements will either contain a h2... 阅读全文
posted @ 2012-04-30 22:43 pieux 阅读(398) 评论(0) 推荐(0) 编辑

2012年4月29日

摘要: Deleting dataDeletingAll Delete[...] methods return the number of records deleted.DeleteBy[...]Simple.Data:db.Users.DeleteById(1);SQL:DELETE FROM [Users] WHERE [Users].[Id] = @p1Delete (using Named Ar... 阅读全文
posted @ 2012-04-29 09:00 pieux 阅读(210) 评论(0) 推荐(0) 编辑

摘要: Inserting and updating dataA quick noteYou will notice that there are multiple ways to achieve the same thing here. Which you choose to use are up to you, but I recommend that you try and be consisten... 阅读全文
posted @ 2012-04-29 09:00 pieux 阅读(488) 评论(0) 推荐(0) 编辑

摘要: Finding dataDynamic Find methodsThe dynamic Table properties exposed by the Database object will accept a variety of methods starting with Find.FindBy[…]returns a singledynamicobjectFindAllBy[…]return... 阅读全文
posted @ 2012-04-29 08:54 pieux 阅读(706) 评论(0) 推荐(0) 编辑

摘要: Getting startedTo open aSQLServer database: var db = Database.OpenConnection("data source=.;initial catalog=Xyz;etc");To open aSQLServer Compact Edition 4.0 database var db = Database.OpenFile("mydb.s... 阅读全文
posted @ 2012-04-29 08:43 pieux 阅读(755) 评论(0) 推荐(0) 编辑

2012年4月27日

摘要: 目录:placeholder前言:巴拉巴拉巴拉步骤1:创建一个AuthenticationModule创建一个新的Module,我们叫它AuthenticationModule:public class AuthenticationModule : BaseModule{ public AuthenticationModule() : base() { Ge... 阅读全文
posted @ 2012-04-27 00:04 pieux 阅读(2212) 评论(1) 推荐(2) 编辑

2012年4月26日

摘要: 前言:巴拉巴拉巴拉步骤1:我们需要什么样的Routes?这一步就是需求分析了。首先决定我们的应用需要暴露什么信息,以及用户如何交互。一旦了解后,就可以映射到一个route和方法(Get或者POST)。简单起见,我们把要求分为两部分:前台和后台。前台对任何人可见,后台给管理员使用。前台需求:访问主页观赏最新照片: Route: /Method: GET访问指定照片,并观看评论:Route: /pho... 阅读全文
posted @ 2012-04-26 15:51 pieux 阅读(2239) 评论(0) 推荐(0) 编辑

摘要: 这是用Nancy和Simple.Data创建一个图片博客的第一部分:placeholder:目录前言:巴拉巴拉巴拉步骤1:创建Visual Studio solution创建一个空的ASP.NET Web应用,如何创建呢?首先去Github上的Nancy项目地址Accessories,下载到本机,然后找到Nancy.Empty.Web.Application.Template.Package.vs... 阅读全文
posted @ 2012-04-26 14:38 pieux 阅读(3441) 评论(1) 推荐(5) 编辑

摘要: 前言:步骤1:创建初始的Blog应用本次示例使用Phil Haack's Really Empty MVC Project Template,添加文件夹:App_Data/BlogPosts,Content/BlogPostImages;添加Controller: HomeController;以及相关联的View Views/Home/Index.cshtml;和其他Shared Views,初... 阅读全文
posted @ 2012-04-26 12:17 pieux 阅读(1328) 评论(0) 推荐(0) 编辑