Skip to content

Commit aaaacef

Browse files
committed
del trash
1 parent 81ace52 commit aaaacef

File tree

89 files changed

+22921
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+22921
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by the StronglyTypedId source generator
4+
//
5+
// Changes to this file may cause incorrect behavior and will be lost if
6+
// the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
#pragma warning disable 1591 // publicly visible type or member must be documented
11+
12+
#if STRONGLY_TYPED_ID_EMBED_ATTRIBUTES
13+
14+
using System;
15+
16+
namespace StronglyTypedIds
17+
{
18+
/// <summary>
19+
/// Place on partial structs to make the type a strongly-typed ID
20+
/// </summary>
21+
[AttributeUsage(AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
22+
[System.Diagnostics.Conditional("STRONGLY_TYPED_ID_USAGES")]
23+
internal sealed class StronglyTypedIdAttribute : Attribute
24+
{
25+
/// <summary>
26+
/// Make the struct a strongly typed ID
27+
/// </summary>
28+
/// <param name="backingType">The <see cref="Type"/> to use to store the strongly-typed ID value.
29+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.BackingType"/>, which defaults to <see cref="StronglyTypedIdBackingType.Guid"/></param>
30+
/// <param name="converters">Converters to create for serializing/deserializing the strongly-typed ID value.
31+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.Converters"/>, which defaults to <see cref="StronglyTypedIdConverter.NewtonsoftJson"/>
32+
/// and <see cref="StronglyTypedIdConverter.TypeConverter"/></param>
33+
/// <param name="implementations">Interfaces and patterns the strongly typed id should implement
34+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.Implementations"/>, which defaults to <see cref="StronglyTypedIdImplementations.IEquatable"/>
35+
/// and <see cref="StronglyTypedIdImplementations.IComparable"/></param>
36+
public StronglyTypedIdAttribute(
37+
StronglyTypedIdBackingType backingType = StronglyTypedIdBackingType.Default,
38+
StronglyTypedIdConverter converters = StronglyTypedIdConverter.Default,
39+
StronglyTypedIdImplementations implementations = StronglyTypedIdImplementations.Default)
40+
{
41+
BackingType = backingType;
42+
Converters = converters;
43+
Implementations = implementations;
44+
}
45+
46+
/// <summary>
47+
/// The <see cref="Type"/> to use to store the strongly-typed ID value
48+
/// </summary>
49+
public StronglyTypedIdBackingType BackingType { get; }
50+
51+
/// <summary>
52+
/// JSON library used to serialize/deserialize strongly-typed ID value
53+
/// </summary>
54+
public StronglyTypedIdConverter Converters { get; }
55+
56+
/// <summary>
57+
/// Interfaces and patterns the strongly typed id should implement
58+
/// </summary>
59+
public StronglyTypedIdImplementations Implementations { get; }
60+
}
61+
}
62+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by the StronglyTypedId source generator
4+
//
5+
// Changes to this file may cause incorrect behavior and will be lost if
6+
// the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
#pragma warning disable 1591 // publicly visible type or member must be documented
11+
12+
#if STRONGLY_TYPED_ID_EMBED_ATTRIBUTES
13+
14+
using System;
15+
16+
namespace StronglyTypedIds
17+
{
18+
/// <summary>
19+
/// Place on partial structs to make the type a strongly-typed ID
20+
/// </summary>
21+
[AttributeUsage(AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
22+
[System.Diagnostics.Conditional("STRONGLY_TYPED_ID_USAGES")]
23+
internal sealed class StronglyTypedIdAttribute : Attribute
24+
{
25+
/// <summary>
26+
/// Make the struct a strongly typed ID
27+
/// </summary>
28+
/// <param name="backingType">The <see cref="Type"/> to use to store the strongly-typed ID value.
29+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.BackingType"/>, which defaults to <see cref="StronglyTypedIdBackingType.Guid"/></param>
30+
/// <param name="converters">Converters to create for serializing/deserializing the strongly-typed ID value.
31+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.Converters"/>, which defaults to <see cref="StronglyTypedIdConverter.NewtonsoftJson"/>
32+
/// and <see cref="StronglyTypedIdConverter.TypeConverter"/></param>
33+
/// <param name="implementations">Interfaces and patterns the strongly typed id should implement
34+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.Implementations"/>, which defaults to <see cref="StronglyTypedIdImplementations.IEquatable"/>
35+
/// and <see cref="StronglyTypedIdImplementations.IComparable"/></param>
36+
public StronglyTypedIdAttribute(
37+
StronglyTypedIdBackingType backingType = StronglyTypedIdBackingType.Default,
38+
StronglyTypedIdConverter converters = StronglyTypedIdConverter.Default,
39+
StronglyTypedIdImplementations implementations = StronglyTypedIdImplementations.Default)
40+
{
41+
BackingType = backingType;
42+
Converters = converters;
43+
Implementations = implementations;
44+
}
45+
46+
/// <summary>
47+
/// The <see cref="Type"/> to use to store the strongly-typed ID value
48+
/// </summary>
49+
public StronglyTypedIdBackingType BackingType { get; }
50+
51+
/// <summary>
52+
/// JSON library used to serialize/deserialize strongly-typed ID value
53+
/// </summary>
54+
public StronglyTypedIdConverter Converters { get; }
55+
56+
/// <summary>
57+
/// Interfaces and patterns the strongly typed id should implement
58+
/// </summary>
59+
public StronglyTypedIdImplementations Implementations { get; }
60+
}
61+
}
62+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by the StronglyTypedId source generator
4+
//
5+
// Changes to this file may cause incorrect behavior and will be lost if
6+
// the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
#pragma warning disable 1591 // publicly visible type or member must be documented
11+
12+
#if STRONGLY_TYPED_ID_EMBED_ATTRIBUTES
13+
14+
using System;
15+
16+
namespace StronglyTypedIds
17+
{
18+
/// <summary>
19+
/// Place on partial structs to make the type a strongly-typed ID
20+
/// </summary>
21+
[AttributeUsage(AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
22+
[System.Diagnostics.Conditional("STRONGLY_TYPED_ID_USAGES")]
23+
internal sealed class StronglyTypedIdAttribute : Attribute
24+
{
25+
/// <summary>
26+
/// Make the struct a strongly typed ID
27+
/// </summary>
28+
/// <param name="backingType">The <see cref="Type"/> to use to store the strongly-typed ID value.
29+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.BackingType"/>, which defaults to <see cref="StronglyTypedIdBackingType.Guid"/></param>
30+
/// <param name="converters">Converters to create for serializing/deserializing the strongly-typed ID value.
31+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.Converters"/>, which defaults to <see cref="StronglyTypedIdConverter.NewtonsoftJson"/>
32+
/// and <see cref="StronglyTypedIdConverter.TypeConverter"/></param>
33+
/// <param name="implementations">Interfaces and patterns the strongly typed id should implement
34+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.Implementations"/>, which defaults to <see cref="StronglyTypedIdImplementations.IEquatable"/>
35+
/// and <see cref="StronglyTypedIdImplementations.IComparable"/></param>
36+
public StronglyTypedIdAttribute(
37+
StronglyTypedIdBackingType backingType = StronglyTypedIdBackingType.Default,
38+
StronglyTypedIdConverter converters = StronglyTypedIdConverter.Default,
39+
StronglyTypedIdImplementations implementations = StronglyTypedIdImplementations.Default)
40+
{
41+
BackingType = backingType;
42+
Converters = converters;
43+
Implementations = implementations;
44+
}
45+
46+
/// <summary>
47+
/// The <see cref="Type"/> to use to store the strongly-typed ID value
48+
/// </summary>
49+
public StronglyTypedIdBackingType BackingType { get; }
50+
51+
/// <summary>
52+
/// JSON library used to serialize/deserialize strongly-typed ID value
53+
/// </summary>
54+
public StronglyTypedIdConverter Converters { get; }
55+
56+
/// <summary>
57+
/// Interfaces and patterns the strongly typed id should implement
58+
/// </summary>
59+
public StronglyTypedIdImplementations Implementations { get; }
60+
}
61+
}
62+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by the StronglyTypedId source generator
4+
//
5+
// Changes to this file may cause incorrect behavior and will be lost if
6+
// the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
#pragma warning disable 1591 // publicly visible type or member must be documented
11+
12+
#if STRONGLY_TYPED_ID_EMBED_ATTRIBUTES
13+
14+
using System;
15+
16+
namespace StronglyTypedIds
17+
{
18+
/// <summary>
19+
/// Place on partial structs to make the type a strongly-typed ID
20+
/// </summary>
21+
[AttributeUsage(AttributeTargets.Struct, Inherited = false, AllowMultiple = false)]
22+
[System.Diagnostics.Conditional("STRONGLY_TYPED_ID_USAGES")]
23+
internal sealed class StronglyTypedIdAttribute : Attribute
24+
{
25+
/// <summary>
26+
/// Make the struct a strongly typed ID
27+
/// </summary>
28+
/// <param name="backingType">The <see cref="Type"/> to use to store the strongly-typed ID value.
29+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.BackingType"/>, which defaults to <see cref="StronglyTypedIdBackingType.Guid"/></param>
30+
/// <param name="converters">Converters to create for serializing/deserializing the strongly-typed ID value.
31+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.Converters"/>, which defaults to <see cref="StronglyTypedIdConverter.NewtonsoftJson"/>
32+
/// and <see cref="StronglyTypedIdConverter.TypeConverter"/></param>
33+
/// <param name="implementations">Interfaces and patterns the strongly typed id should implement
34+
/// If not set, uses <see cref="StronglyTypedIdDefaultsAttribute.Implementations"/>, which defaults to <see cref="StronglyTypedIdImplementations.IEquatable"/>
35+
/// and <see cref="StronglyTypedIdImplementations.IComparable"/></param>
36+
public StronglyTypedIdAttribute(
37+
StronglyTypedIdBackingType backingType = StronglyTypedIdBackingType.Default,
38+
StronglyTypedIdConverter converters = StronglyTypedIdConverter.Default,
39+
StronglyTypedIdImplementations implementations = StronglyTypedIdImplementations.Default)
40+
{
41+
BackingType = backingType;
42+
Converters = converters;
43+
Implementations = implementations;
44+
}
45+
46+
/// <summary>
47+
/// The <see cref="Type"/> to use to store the strongly-typed ID value
48+
/// </summary>
49+
public StronglyTypedIdBackingType BackingType { get; }
50+
51+
/// <summary>
52+
/// JSON library used to serialize/deserialize strongly-typed ID value
53+
/// </summary>
54+
public StronglyTypedIdConverter Converters { get; }
55+
56+
/// <summary>
57+
/// Interfaces and patterns the strongly typed id should implement
58+
/// </summary>
59+
public StronglyTypedIdImplementations Implementations { get; }
60+
}
61+
}
62+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by the StronglyTypedId source generator
4+
//
5+
// Changes to this file may cause incorrect behavior and will be lost if
6+
// the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
#pragma warning disable 1591 // publicly visible type or member must be documented
11+
12+
#if STRONGLY_TYPED_ID_EMBED_ATTRIBUTES
13+
14+
using System;
15+
16+
namespace StronglyTypedIds
17+
{
18+
/// <summary>
19+
/// The <see cref="Type"/> to use to store the value of a strongly-typed ID
20+
/// </summary>
21+
internal enum StronglyTypedIdBackingType
22+
{
23+
/// <summary>
24+
/// Use the default backing type (either the globally configured default, or Guid)
25+
/// </summary>
26+
Default = 0,
27+
28+
Guid = 1,
29+
Int = 2,
30+
String = 3,
31+
Long = 4,
32+
NullableString = 5,
33+
MassTransitNewId = 6,
34+
}
35+
}
36+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by the StronglyTypedId source generator
4+
//
5+
// Changes to this file may cause incorrect behavior and will be lost if
6+
// the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
#pragma warning disable 1591 // publicly visible type or member must be documented
11+
12+
#if STRONGLY_TYPED_ID_EMBED_ATTRIBUTES
13+
14+
using System;
15+
16+
namespace StronglyTypedIds
17+
{
18+
/// <summary>
19+
/// The <see cref="Type"/> to use to store the value of a strongly-typed ID
20+
/// </summary>
21+
internal enum StronglyTypedIdBackingType
22+
{
23+
/// <summary>
24+
/// Use the default backing type (either the globally configured default, or Guid)
25+
/// </summary>
26+
Default = 0,
27+
28+
Guid = 1,
29+
Int = 2,
30+
String = 3,
31+
Long = 4,
32+
NullableString = 5,
33+
MassTransitNewId = 6,
34+
}
35+
}
36+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by the StronglyTypedId source generator
4+
//
5+
// Changes to this file may cause incorrect behavior and will be lost if
6+
// the code is regenerated.
7+
// </auto-generated>
8+
//------------------------------------------------------------------------------
9+
10+
#pragma warning disable 1591 // publicly visible type or member must be documented
11+
12+
#if STRONGLY_TYPED_ID_EMBED_ATTRIBUTES
13+
14+
using System;
15+
16+
namespace StronglyTypedIds
17+
{
18+
/// <summary>
19+
/// The <see cref="Type"/> to use to store the value of a strongly-typed ID
20+
/// </summary>
21+
internal enum StronglyTypedIdBackingType
22+
{
23+
/// <summary>
24+
/// Use the default backing type (either the globally configured default, or Guid)
25+
/// </summary>
26+
Default = 0,
27+
28+
Guid = 1,
29+
Int = 2,
30+
String = 3,
31+
Long = 4,
32+
NullableString = 5,
33+
MassTransitNewId = 6,
34+
}
35+
}
36+
#endif

0 commit comments

Comments
 (0)