小编CeO*_*Sql的帖子

MudBlazor:MudTablePager 更改“每页行数”的语言

是否有可能更改此文本:

泥表寻呼机

例如“Elemente pro Seite”之类的内容?

我更改了信息格式,但找不到更改左侧文本的选项?

代码:

<PagerContent>
    <MudTablePager InfoFormat="@infoFormat"/>
</PagerContent>

@code {
      private string infoFormat = "{first_item}-{last_item} von {all_items}";
}
Run Code Online (Sandbox Code Playgroud)

在此先感谢您的帮助。

blazor mudblazor

8
推荐指数
1
解决办法
4189
查看次数

compile schemas with included xsd files

I have static method, which i use to validate a XML File against a XSD File. This works fine, until there is an XSD File which includes another XSD File.

Example, where i got troubles:

TYPES.XSD:

<xs:simpleType name="MY_AMOUNT">
    <xs:restriction base="xs:decimal">
        <xs:maxInclusive value="999999999999.99"/>
        <xs:minInclusive value="-999999999999.99"/>
        <xs:totalDigits value="14"/>
        <xs:fractionDigits value="2"/>
    </xs:restriction>
</xs:simpleType>
Run Code Online (Sandbox Code Playgroud)

MAIN.XSD:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:include schemaLocation="TYPES.xsd"/>
    <xs:element name="ROOT">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="SOMEREF1"/>
                <xs:element ref="SOMEREF2"/>
                <xs:element name="AMOUNT" type="MY_AMOUNT" minOccurs="0"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
Run Code Online (Sandbox Code Playgroud)

VALIDATION CODE:

public static class …
Run Code Online (Sandbox Code Playgroud)

.net c# validation xsd xmlschemaset

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

在给定的开始月份分拣12个月(1-12)

我有一个问题是找到一个算法,从任何给定值开始按月列对表进行排序.

例如这个表:

month | sales
1     | 621,12
2     | ...    
3     | ....
4     |
5     |
6     |
7     |
8     |
9     |
10    |
11    |
12    |
Run Code Online (Sandbox Code Playgroud)

假设我已经开始月= 5 - 然后我想得到:

month | sales
5     | 
6     |    
7     |
8     |
9     |
10    |
11    |
12    |
1     | 621,12
2     | ...
3     | ....
4     |
Run Code Online (Sandbox Code Playgroud)

基表ALWAYS在我的情况下有12条记录(月值总是1-12).

如果有人知道如何用SQL实现这一点会很好

谢谢!

sql sql-server sorting algorithm

2
推荐指数
1
解决办法
62
查看次数

标签 统计

.net ×1

algorithm ×1

blazor ×1

c# ×1

mudblazor ×1

sorting ×1

sql ×1

sql-server ×1

validation ×1

xmlschemaset ×1

xsd ×1