Visual Studio 从数据库更新模型问题 [英] Visual studio update model from data base Issue

查看:27
本文介绍了Visual Studio 从数据库更新模型问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

i was facing a issue  while trying to add a new Store Procedure from database .  update model from data base is showing extra line changes in all Store Procedure and showing in "Include Changes " in Visual studio . I am using Visual Studio 2015 , trying to add newly created store Procedure in Entity . any help will be appreciable ,it making me in trouble a lot .[![enter image description here][1]][1]

从模型更新后得到这个屏幕.比较变化后得到这个屏幕,

this screen getting after update from model . this screen getting after comparing changes ,

请查看我在运行git config -l --show-origin"后得到的设置

please look the my setting that i am getting after run "git config -l --show-origin"

推荐答案

我在尝试从数据库添加新的存储过程时遇到问题:
来自数据库的更新模型显示所有存储过程中的额外行更改,并显示在 Visual Studio 的包含更改"中.

I was facing a issue while trying to add a new Store Procedure from database:
update model from data base is showing extra line changes in all Store Procedure and showing in "Include Changes " in Visual studio .

那些额外的行只是在方法声明之间添加的空行.
它们与 core.autocrlf 和 eol(行尾)字符无关.

Those extra lines are simply empty lines added between method declarations.
They have nothing to do with core.autocrlf and eol (end of line) characters.

如果您添加/提交这些更改,下次更新模型时,您应该不要再次看到这些额外的行(因为它们已经存在了).

Should you add/commit those changes, the next time you update your model, you should not see those extra lines again (because they would be already there).

所以这不是一个实际问题,只是默认情况下 Visual Studio 格式化该文件的方式.您可以继续进行这些更改,如图所示.

So this is not an actual issue, just the way Visual Studio format that file by default. You can proceed with those changes as shown.

这篇关于Visual Studio 从数据库更新模型问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆