Loading

上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: Dapper Extensions Change Schema You can use the AutoClassMapper to assign a new schema to your model. An overview on this is on the extensions site. Y 阅读全文
posted @ 2017-08-14 13:07 Dhoopu 阅读(480) 评论(0) 推荐(0) 编辑
摘要: There are ample of samples available to show how to insert an object/entity to Azure Storage Table. However, all the samples inherit from TableEntity This sample shows how to insert custom entities to table when we don’t have a class that inherits from TableEntity. 阅读全文
posted @ 2017-05-12 18:41 Dhoopu 阅读(235) 评论(0) 推荐(0) 编辑
摘要: How can i generate a class from a table at a SQL Server? 阅读全文
posted @ 2017-04-11 14:36 Dhoopu 阅读(167) 评论(0) 推荐(0) 编辑
摘要: string baseUrl = Request.Url.Scheme + "://" + Request.Url.Authority +Request.ApplicationPath.TrimEnd('/') + "/"; 阅读全文
posted @ 2017-02-08 19:27 Dhoopu 阅读(168) 评论(0) 推荐(0) 编辑
摘要: SqlAzure中的方式: SQLServer的方式: 阅读全文
posted @ 2016-05-24 12:14 Dhoopu 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 在EntityFramework 6.1后可以直接使用 [Index("TitleIndex", IsUnique = true)] public string Title { get; set; } 在旧版本中, Unfortunately you can't define it as uniqu 阅读全文
posted @ 2016-02-25 11:59 Dhoopu 阅读(1750) 评论(0) 推荐(0) 编辑
摘要: Just found out the answer and thought of updating here. Just need to do the following. public class AddressBook: DbContext { protected override void O 阅读全文
posted @ 2016-02-25 11:49 Dhoopu 阅读(1807) 评论(0) 推荐(0) 编辑
摘要: Code-First时更新数据库遇到妖孽问题“No connection string named '***' could be found in the application config file” 原文链接:http://stackoverflow.com/questions/1262240 阅读全文
posted @ 2016-02-04 15:51 Dhoopu 阅读(1161) 评论(1) 推荐(0) 编辑
摘要: void regenerateId(){ System.Web.SessionState.SessionIDManager manager = new System.Web.SessionState.SessionIDManager(); string oldId = manager.G... 阅读全文
posted @ 2015-12-01 19:12 Dhoopu 阅读(591) 评论(0) 推荐(0) 编辑
摘要: Sometimes we need to create JSON in a text file with extension.json, however by default IIS 7 or any of the IIS are not configure to handle .json exte... 阅读全文
posted @ 2015-10-20 14:10 Dhoopu 阅读(439) 评论(0) 推荐(0) 编辑
摘要: You need to delete the state:Delete the migrations folder in your projectDelete the __MigrationHistory table in your database (may be under system tab... 阅读全文
posted @ 2015-10-14 18:09 Dhoopu 阅读(536) 评论(0) 推荐(0) 编辑
摘要: The smartest way is probably to not alter types. If you need to do this, I'd suggest you to do the following steps:Add a new column with your new type... 阅读全文
posted @ 2015-10-14 17:42 Dhoopu 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 一.MYSQL的命令行模式的设置:桌面->我的电脑->属性->环境变量->新建->PATH=“;path\mysql\bin;”其中path为MYSQL的安装路径。二.简单的介绍一下命令行进入MYSQL的方法:1.C:\>mysql -h hostname -u username -p .C:\>m... 阅读全文
posted @ 2014-12-26 11:53 Dhoopu 阅读(28589) 评论(2) 推荐(1) 编辑
摘要: function getURLParameter(name) { return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].... 阅读全文
posted @ 2014-12-09 17:40 Dhoopu 阅读(622) 评论(0) 推荐(0) 编辑
摘要: The error message while trying tocreate a ADO.net Entity Data Model ( Entity Framework 6 ) for MySql Database in Microsoft Visual Studio 2013"Your pro... 阅读全文
posted @ 2014-12-09 17:36 Dhoopu 阅读(14227) 评论(0) 推荐(2) 编辑
摘要: public static class HtmlRequestHelper{ public static string Id(this HtmlHelper htmlHelper) { var routeValues = HttpContext.Current.Reques... 阅读全文
posted @ 2014-11-27 17:54 Dhoopu 阅读(648) 评论(0) 推荐(0) 编辑
摘要: void Application_BeginRequest(object sender, EventArgs e){if (HttpContext.Current.Request.Url.ToString().ToLower().Contains("http://domain.com")){// n... 阅读全文
posted @ 2014-11-25 17:06 Dhoopu 阅读(273) 评论(0) 推荐(0) 编辑
摘要: The same solution can be applied for LINQ to SQL. The snippet the article shows for using theMetadataTypewill use perfectly well with LINQ to SQL gene... 阅读全文
posted @ 2014-11-14 14:33 Dhoopu 阅读(265) 评论(0) 推荐(0) 编辑
摘要: "Error: this template attempted to load component assembly 'NuGet.VisualStudio.Interop, Version=1.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50... 阅读全文
posted @ 2014-08-15 17:52 Dhoopu 阅读(680) 评论(0) 推荐(1) 编辑
摘要: I am having problems with a bit of code that accesses a restful web service. Running this code, it errors out at var httpResponse = (HttpWebResponse)h... 阅读全文
posted @ 2014-08-08 18:42 Dhoopu 阅读(7143) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 14 下一页