你觉得在visual studio中有什么标记有用吗?(visual studio 2010 → 环境 → 任务列表 →令牌)
目前我只有:
(只有这些 - 删除了一些默认的)
你在使用其他人吗?
你是否用评论标记报道任何其他重要的事情?
任何最佳做法?日Thnx
有没有办法完全删除visual studio 2010中的pin选项卡选项(如何?),我不断意外地点击它:( 我想要它已经消失.我从来没有使用它,并且总是偶然点击它.
日Thnx
ps右键单击PIN图标确实会显示一些自定义对话框,但无法将其删除 - 无法识别该选项.
user-interface visual-studio-2010 visual-studio productivity-power-tools
需要帮助记录站点上的所有活动以及数据库更改.
要求:
我能想到的一个数据库设计的,但无论是它涉及到很多表(每个事件之一),所以我可以记录每一个事件的参数,在一个单独的字段或它涉及到一个表,通用字段(7 INT数字和7文本使用事件类型字段确定哪个参数写入哪里(并希望我不需要超过7个特定类型的字段,或8或9或我选择的任何数字)...
条目的例子(通常的事情):
[username] login failed @datetime
[username] login successful @datetime
[username] changed password @datetime, estimated security of password [low/ok/high/perfect] @datetime
[username] clicked result [result number] [result id] after searching for [search string] and got [number of results] @datetime
[username] clicked result [result number] [result id] after searching for [search string] and got [number of results] @datetime
[username] changed profile name from [old name] to [new name] @datetime
[username] verified name with [credit card …
Run Code Online (Sandbox Code Playgroud) 如何使表user_roles将两列(userID,roleID)定义为复合主键.应该很容易,只是记不住/找不到.
在user
实体中:
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "user_roles")
public List<RoleDAO> getRoles() {
return roles;
}
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getUserID() {
return userID;
}
Run Code Online (Sandbox Code Playgroud)
在roles
实体中:
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "user_roles")
public List<UserDAO> getUsers() {
return users;
}
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getRoleID() {
return roleID;
}
Run Code Online (Sandbox Code Playgroud)
谢谢.
**更多信息
因此,有一个第三表user_roles
即花费(由上述自动生成)userID
从user
实体和roleID
从roles
实体.现在我需要生成的table(user_roles
)中的这两列是一个复合主键.
我在Visual Studio 2015中使用Git和Visual Studio Online,并试图找出如何创建分支.
这是互联网上的常见答案:https://msdn.microsoft.com/en-us/library/hh850437.aspx&https://msdn.microsoft.com/en-us/library/jj190809.aspx#create
如果您检查图像,它会显示分支和下拉箭头,我假设您可以创建分支.但是在Visual Studio 2105中,下拉列表不存在,当我点击链接时它会转到分支.
但是只有Merge,Rebase和Actions下拉列表.没有新的分支.
那么如何在Visual Studio 2015中创建新分支?
如何在visual studio中的varchar(max)字段上创建唯一约束.
问题是我试试的时候:
管理索引和键>添加>列
我只能选择bigint列,但不能选择任何varchar(max)列.
我是否可能必须使用检查约束?
如果是的话,在表达中放什么?
Thnx的信息
我正在寻找与stackoverflow徽章类似的东西.你也可以把它们等同于游戏中的成就.
但我不确定如何为他们设计数据库/代码/跟踪.
我得到我应该做的徽章,如:
Altruist×1456你在另一个人的问题上手动判给的第一笔赏金
因为它们是一次性事件,但如何处理其他事件,例如:
分析×16389访问常见问题
选民的每个部分×1783投票600个问题和25%或更多的总投票问题直言不讳×188发布10个聊天消息由10个不同用户主演
等等...
如何处理它们,如何跟踪每个进度等等...是否有一个教程或某些东西可以帮助我找出它们的设计模式?
什么是最佳做法?调用一个函数然后返回,如果你测试一些东西,或测试一些东西然后调用?
我更喜欢函数内部的测试,因为它可以更容易地查看调用的函数.
例如:
protected void Application_BeginRequest(object sender, EventArgs e)
{
this.FixURLCosmetics();
}
Run Code Online (Sandbox Code Playgroud)
和
private void FixURLCosmetics()
{
HttpContext context = HttpContext.Current;
if (!context.Request.HttpMethod.ToString().Equals("GET", StringComparison.OrdinalIgnoreCase))
{
// if not a GET method cancel url cosmetics
return;
};
string url = context.Request.RawUrl.ToString();
bool doRedirect = false;
// remove > default.aspx
if (url.EndsWith("/default.aspx", StringComparison.OrdinalIgnoreCase))
{
url = url.Substring(0, url.Length - 12);
doRedirect = true;
}
// remove > www
if (url.Contains("//www"))
{
url = url.Replace("//www", "//");
doRedirect = true;
}
// redirect …
Run Code Online (Sandbox Code Playgroud) 我需要一种获取完全随机的YouTube视频的方法.没有限制.
如何使用YouTube API?
**编辑*确定这里要求的是我到目前为止尝试的:
1 - 在youtube开发站点浏览了api和示例.http://www.youtube.com/dev/没有运气找到正确的api或在那里做的方式.
2 - 谷歌搜索当然;)得到http://randomyoutubevideo.net/但他们只提供从他们在我和youtube之间使用的API.<这让我希望实际上可以做到这一点.
3 - 甚至检查了youtube应用程序库http://youtube-gallery.appspot.com/,看看是否有人这样做.如何.
我还要做的是在youtube讨论页面上询问.也许有人可以提供帮助.
我怎么能这样做,当我去(例如)http://localhost:60288/
它没有显示我的目录列表,而是打开Index.aspx
页面?这适用http://localhost:60288/Index.aspx
但我不希望Index.aspx
每次都显示.
我还需要http://localhost:60288/?a=1
像http://localhost:60288/Index.aspx?a=1
没有Index.aspx
显示那样工作的链接.
当我在visual studio中创建一个网站项目时,这曾经工作,但现在我正在使用应用程序项目.我怎么设置它?
我希望/需要这个适用于所有子文件夹,例如http://localhost:60288/SubFolder/
应该像链接到的那样工作http://localhost:60288/SubFolder/Index.aspx
日Thnx
编辑仍然没有管理它
c# ×4
asp.net ×2
sql-server ×2
.net ×1
annotations ×1
branch ×1
events ×1
function ×1
git ×1
git-branch ×1
if-statement ×1
java ×1
logging ×1
many-to-many ×1
persistence ×1
primary-key ×1
settings ×1
sql ×1
token ×1
youtube-api ×1