2024-0105

EF下未指定具体数据类型,DateTime类型字段在Oracle数据库下默认映射成TIMESTAMP类型,Oracle数据库默认时间类型都是DATE,这种情况直接查询,会造成需要TIMESTAMP隐式转换成DATE类型,造成性能下降。


解决方法:

指定TypeName = "DATE"

/// <summary>
/// 操作时间
/// </summary>    
[Column("OPER_DATE", TypeName = "DATE")]
 阅读全文>>
                
标签: TIMESTAMP DATE Oracle EF 阅读:268
2013-0916

IllegalStateException: Can't deserialize target data of key 'IdeaAndroidProject'. Given class loaders: [PluginClassLoader[org.jetbrains.android, 10.0]]: Can't deserialize target data of key 'IdeaAndroidProject'. Given class loaders: [PluginClassLoader[org.jetbrains.android, 10.0]]


报这个错误,新建工程也看不到源文件,升级新版本可以解决这个问题

 阅读全文>>

标签: IllegalStateException Android Studio Update 离线升级 阅读:11717
2013-0529
[Display(Name="发布时间:")]
[DataType(DataType.Date)]
public DateTime PubTime { get; set; }


修改如下:

[Display(Name="发布时间:")]
[DataType(DataType.Date)]
[DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}", ApplyFormatInEditMode = true)]
public DateTime PubTime { get; set; }


说明 Html5的 阅读全文>>

标签: MVC4 DataType.Date EditorFor Html5 type="date" input 阅读:18796
2013-0324

Entity Framework Migrations are handled the package manager console in Visual Studio. The usage is shown in various tutorials, but I haven’t found a complete list of the commands available and their usage, so I created my own. There are four available commands.

Enable-Migrations:Enables Code First Migrations in a project.

Add-Migration: 阅读全文>>

标签: Enable-Migrations Add-Migration Update-Database Get-Migrations 阅读:10827