![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c#
yangxinyue315
这个作者很懒,什么都没留下…
展开
-
Sql查询过程中 like 运算传递参数
文章目录背景一、以往的like运算写法二、以参数传递的方式1.写法2.需要注意 背景 无聊在学习 nodejs express mssql 的时候,想到了如何封装一个mssql helper类,以便后边的使用 一、以往的like运算写法 select * from tableName where charFieldName like '%模糊查询内容%' 二、以参数传递的方式 1.写法 declare @searchStr varchar(30) set @searchStr = '%中国威武%' s原创 2021-08-09 21:06:59 · 2018 阅读 · 0 评论 -
dotnet core EF命令
dotnet 3.1 之后,需要升级 dotnet ef命令 dotnet tool install --global dotnet-ef 命令使用帮助 dotnet ef dbcontext scaffold -h Arguments: 参数: The connection string to the database. 数据库连接字符串 The provider to use. (E.g. Microsoft.EntityFrameworkCore.SqlServer) 提供程序类型 Op原创 2020-06-30 22:44:04 · 1653 阅读 · 0 评论 -
在使用EF时,想要比较字符串类型的日期时
在使用EF时,想要比较字符串类型的日期时在使用EF时,想要比较字符串类型的日期时,参考以下:SQL语句:1)select * from TableName where StartTime > ‘2015-04-08’ 2)select * from TableName where StartTime >= ‘2015-04-08’ 3)select * from TableName where转载 2015-04-09 15:34:45 · 5093 阅读 · 0 评论 -
EF code first attribute
[Column(“DepartmentName”)] 该成员映射列列名DepartmentName [ComplexType] 复合类型 [ConcurrencyCheck] 乐观并发检查的字段 [DatabaseGenerated] [DataMember] [DefaultValue(true)] [ForeignKey(“Task”)] 外键.Task为另一个数据库类名称 [I转载 2015-07-20 17:17:03 · 573 阅读 · 0 评论 -
Entity Framework 6.0 nuget 命令行
开启EF迁移类 Enable-Migrations 添加一个版本 Add-Migration AddTestClass //AddTestClass是类名称,自动生成代码 将数据库更新到最新版本 Update-Database –Verbose 退回到某一个版本,将调用它之后所有版本的down Update-Database –TargetMigration:AddBlogUrl 退回到空数据...翻译 2019-02-25 19:03:53 · 214 阅读 · 0 评论 -
vs2019 RC发布 现已推出
原文地址:https://devblogs.microsoft.com/visualstudio/visual-studio-2019-release-candidate-rc-now-available/ 原文: Today we’re sharing a Visual Studio 2019 Release Candidate (RC) – one of the final steps bef...翻译 2019-03-08 15:58:22 · 738 阅读 · 0 评论