小编Chr*_*ens的帖子

Azure Data Lake中的U-SQL输出

如果我不知道表中包含多少个不同的键值,是否可以根据列值自动将表拆分为多个文件?是否可以将键值放入文件名中?

azure data-partitioning output azure-data-lake u-sql

6
推荐指数
2
解决办法
3300
查看次数

SSRS报告 - IIF声明问题

做一个表达式我得到一个错误,有人可以在这里告诉我正确的语法吗?

=IIf(Fields!t_cpcp.Value ="310", "Purchased Material & Raw Material", Nothing)
=IIf(Fields!t_cpcp.Value ="320", "Manufacturing Direct Labor", Nothing)
=IIf(Fields!t_cpcp.Value ="325", "Subcontract Cost", Nothing)
=IIf(Fields!t_cpcp.Value ="330", "Engineering Direct Labor", Nothing)
=IIf(Fields!t_cpcp.Value ="340", "Manufacturing Labor O/H", Nothing)
=IIf(Fields!t_cpcp.Value ="345", "Engineering Labor O/H", Nothing)
=IIf(Fields!t_cpcp.Value ="350", "Material O/H", Nothing)
=IIf(Fields!t_cpcp.Value ="355", "Labor O/H Surcharge", Nothing)
=IIf(Fields!t_cpcp.Value ="360", "Subcontract Material Burden", Nothing)
=IIf(Fields!t_cpcp.Value ="MFD", "Manufactured Items", Nothing)
Run Code Online (Sandbox Code Playgroud)

sql if-statement reporting-services ssrs-2008

5
推荐指数
1
解决办法
3万
查看次数

使用BOTH的输出缓存因参数而异,并且不同于自定义

我正在尝试做一些非常简单的事情......我有一个带有下拉列表的站点,用户可以从中选择一个组.此后,用户使用菜单中的查询字符串参数浏览站点.所以我希望缓存依赖于查询字符串 - 这似乎有效.我还希望缓存依赖于他们选择的组.

但是当查询字符串为空时,缓存元素似乎都不起作用 - 该页面就是最后一个选定组的版本.我的缓存指令如下所示:

<%@ OutputCache Duration="300" VaryByCustom="currentAtomId" VaryByParam="documentId;folderId;sectionId;renderMode;typeId" %>
Run Code Online (Sandbox Code Playgroud)

我的varyByCustom代码如下所示:

public override string GetVaryByCustomString(HttpContext context, string custom)
{
    switch (custom)
    {
        case "currentAtomId":
            var currentAtomId = SecurityManifold.Create().CurrentAtomId;

            var returnString = currentAtomId == null ? Guid.NewGuid().ToString() : currentAtomId.ToString();

            return returnString;

        default:
            throw new ArgumentException(string.Format("Argument '{0}' is not a valid cache argument.", custom));
    }
}
Run Code Online (Sandbox Code Playgroud)

对CurrentAtomId的调用归结为:

public static int? GetCurrentAtomIdFromContext(HttpContext context)
{
    int entityId;

    if (context.Session == null)
    {
        throw new InvalidOperationException("Session is null");
    }

    var sessionEntityId = context.Session["CurrentEntityId"]; …
Run Code Online (Sandbox Code Playgroud)

asp.net caching

5
推荐指数
1
解决办法
2612
查看次数

如何以编程方式调用Windows权限对话框?

我正在尝试编写证书管理器,我想管理证书文件的权限.我不希望重新发明Windows权限对话框的轮子,所以理想情况下会有某种shell命令,我可以传递其权限被管理的项目的路径.然后,我可以调用它并让shell负责更新权限.

我在这里和那里看到过一些shell函数SHObjectProperties,但没有明确说明如何使用它.任何帮助,将不胜感激.

c# security permissions winforms

5
推荐指数
2
解决办法
1392
查看次数

数据湖中表的重点是什么?

我认为使用Data Lake与数据仓库的关键是将ETL(提取,转换,加载)过程反转为LET(加载,提取,转换).不提取这些数据,转换并将其加载到表中会让我们回到我们开始的地方吗?

azure azure-data-lake

5
推荐指数
1
解决办法
1110
查看次数

如何使用LibGit2Sharp获取文件夹的最后一次提交?

我在一个存储库中有大量项目.我想确定所有这些项目的波动性,即最后一次提交是否会影响每个项目.我有一个所有项目路径的列表,我正在尝试为每个路径找到最后一次提交.我的代码看起来像这样:

    public CommitInfo GetLastCommit(string path)
    {
        // resolve any \..\ and pathing weirdness
        path = Path.GetDirectoryName(Path.GetFullPath(path));

        var relativePath = path.Substring(BaseRepoPath.Length + 1).Replace("\\", "/");

        if (!CommitCache.TryGetValue(relativePath, out CommitInfo result))
        {
            var options = new RepositoryOptions()
            {
                WorkingDirectoryPath = BaseRepoPath
            };

            using (var repo = new Repository(BaseRepoPath, options))
            {
                var filter = new CommitFilter()
                {
                    IncludeReachableFrom = BranchName
                };

                var commit =  repo.Commits.QueryBy(relativePath, filter).First().Commit;

                result = new CommitInfo
                {
                    When = commit.Author.When.DateTime,
                    Who = commit.Author.Name,
                    Message = commit.Message,
                    Files = commit.Tree.Select(x => …
Run Code Online (Sandbox Code Playgroud)

libgit2sharp

5
推荐指数
1
解决办法
198
查看次数

如何检索Jenkins构建的SVN Changeset注释?

我的过程是Jenkins每隔三分钟轮询SVN一次构建,在发生更改时执行构建,然后创建一个部署包,然后将其推送到Octopus.部署完成后,它会通过电子邮件向所涉及的每个人发送部署报告.

现在,报告中的构建注释只是典型的样板文件,即Jenkins Build 35.如果我可以为触发构建的变更集提取注释并从中构建发行说明,那将会是多么棒.

如果我能得到评论,那么将它们放入发行说明非常简单.如果有人对此有任何想法,我将不胜感激.

更新:有关如何使用email-ext插件执行此操作的相关问题,但我没有使用该插件,据我所知,答案是使用该插件的语法表达的,我可以'弄清楚如何适应它.我很感激答案直接关系到我在这里的用法.

svn continuous-integration continuous-deployment jenkins

4
推荐指数
1
解决办法
7464
查看次数

documentDb 中没有分区键属性的文档会发生什么情况?

查看如何使用分区键设置 DocumentDb,如果我有一个多租户应用程序,其中大多数文档都有一个tenantId,那么使用 /tenantId/ 的分区键创建集合似乎是合理的。

没有tenantId 属性的文档会发生什么情况?它们会被添加而没有,还是 Cosmos DB 会使用某种系统(硬编码)tenantId 创建这些对象/文档,以便将它们存储在一起?

azure-cosmosdb

4
推荐指数
1
解决办法
1124
查看次数

使用C#自动化Subversion

可能重复:
有没有人知道Subversion有一个很好的C#API?

我正在设计一个文档库,我想使用Subversion作为版本控制系统.如何从C#自动执行签入,签出和差异等任务?Tortoise可能会提供一些帮助吗?

TIA.

c# svn tortoisesvn

3
推荐指数
1
解决办法
1万
查看次数