Skip to content

Commit 8890ec7

Browse files
Remove most of warnings from DAL
1 parent bd9de71 commit 8890ec7

340 files changed

Lines changed: 1521 additions & 2088 deletions

File tree

Some content is hidden

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

SysML2.NET.CodeGenerator/Templates/Uml/core-dal-element-uml-extensions.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ namespace SysML2.NET.Dal
7676
/// and the provided cache to find the referenced object.
7777
/// </summary>
7878
/// <param name="poco">
79-
/// The <see cref=""/> that is to be updated
79+
/// The <see cref="Core.POCO.Root.Elements.IElement"/> that is to be updated
8080
/// </param>
8181
/// <param name="dto">
82-
/// The DTO that is used to update the <see cref="Core.POCO.Root.Elements.IElement"/> with
82+
/// The DTO that is used to update the <see cref="Core.DTO.Root.Elements.IElement"/> with
8383
/// </param>
8484
/// <param name="cache">
85-
/// The <see cref="ConcurrentDictionary{String, Lazy{Core.POCO.Root.Elements.IElement}}"/> that contains the
86-
/// <see cref="ModelThing"/>s that are know and cached.
85+
/// The <see cref="ConcurrentDictionary{String, Lazy}"/> that contains the
86+
/// ModelThings that are know and cached.
8787
/// </param>
8888
/// <exception cref="ArgumentNullException"></exception>
8989
public static void UpdateReferenceProperties(this Core.POCO.Root.Elements.IElement poco, Core.DTO.Root.Elements.IElement dto, ConcurrentDictionary<Guid, Lazy<Core.POCO.Root.Elements.IElement>> cache)

SysML2.NET.CodeGenerator/Templates/Uml/core-dal-poco-uml-extensions.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@ namespace SysML2.NET.Dal
3232
using Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }};
3333
3434
/// <summary>
35-
/// A static class that provides extension methods for the <see cref="{{ this.Name }}"/> class
35+
/// A static class that provides extension methods for the <see cref="Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}"/> class
3636
/// </summary>
3737
public static class {{ this.Name }}Extensions
3838
{
3939
/// <summary>
40-
/// Updates the value properties of the <see cref="{{ this.Name }}"/> by setting the value equal to that of the dto
40+
/// Updates the value properties of the <see cref="Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}"/> by setting the value equal to that of the dto
4141
/// Removes deleted objects from the reference properties and returns the unique identifiers
4242
/// of the objects that have been removed from contained properties
4343
/// </summary>
4444
/// <param name="poco">
45-
/// The <see cref="{{ this.Name }}"/> that is to be updated
45+
/// The <see cref="Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}"/> that is to be updated
4646
/// </param>
4747
/// <param name="dto">
48-
/// The DTO that is used to update the <see cref="{{ this.Name }}"/> with
48+
/// The DTO that is used to update the <see cref="Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}"/> with
4949
/// </param>
5050
/// <returns>
5151
/// The unique identifiers of the objects that have been removed from contained properties
@@ -100,17 +100,17 @@ namespace SysML2.NET.Dal
100100
}
101101
102102
/// <summary>
103-
/// Updates the Reference properties of the <see cref="{{ this.Name }}"/> using the data (identifiers) encapsulated in the DTO
103+
/// Updates the Reference properties of the <see cref="Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}"/> using the data (identifiers) encapsulated in the DTO
104104
/// and the provided cache to find the referenced object.
105105
/// </summary>
106106
/// <param name="poco">
107-
/// The <see cref="{{ this.Name }}"/> that is to be updated
107+
/// The <see cref="Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}"/> that is to be updated
108108
/// </param>
109109
/// <param name="dto">
110-
/// The DTO that is used to update the <see cref="{{ this.Name }}"/> with
110+
/// The DTO that is used to update the <see cref="Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ this.Name }}"/> with
111111
/// </param>
112112
/// <param name="cache">
113-
/// The <see cref="ConcurrentDictionary{Guid, Lazy{Core.POCO.Root.Elements.IElement}}"/> that contains the
113+
/// The <see cref="ConcurrentDictionary{Guid, Lazy}"/> that contains the
114114
/// <see cref="Core.POCO.Root.Elements.IElement"/>s that are know and cached.
115115
/// </param>
116116
/// <exception cref="ArgumentNullException"></exception>

SysML2.NET.CodeGenerator/Templates/Uml/core-element-dal-uml-factory.hbs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ namespace SysML2.NET.Dal
5555
{
5656
{{#each this as | class |}}
5757
case Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{ class.Name }} {{ String.LowerCaseFirstLetter class.Name }}Dto:
58-
var {{ String.LowerCaseFirstLetter class.Name }}Factory = new {{ class.Name }}Factory();
59-
return {{ String.LowerCaseFirstLetter class.Name }}Factory.Create({{ String.LowerCaseFirstLetter class.Name }}Dto);
58+
return {{ class.Name }}Factory.Create({{ String.LowerCaseFirstLetter class.Name }}Dto);
6059
{{/each}}
6160
default:
6261
throw new NotSupportedException($"{dto.GetType().Name} not yet supported");

SysML2.NET.CodeGenerator/Templates/Uml/core-poco-dal-uml-factory.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace SysML2.NET.Dal
4545
/// <exception cref="ArgumentNullException">
4646
/// thrown when <paramref name="dto"/> is null
4747
/// </exception>
48-
public Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{this.Name}} Create(Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{this.Name}} dto)
48+
public static Core.POCO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{this.Name}} Create(Core.DTO.{{ #NamedElement.WriteFullyQualifiedNameSpace this }}.{{this.Name}} dto)
4949
{
5050
if (dto == null)
5151
{

SysML2.NET.Dal/Core/AutoGenElementFactory/AcceptActionUsageFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class AcceptActionUsageFactory
4545
/// <exception cref="ArgumentNullException">
4646
/// thrown when <paramref name="dto"/> is null
4747
/// </exception>
48-
public Core.POCO.Systems.Actions.AcceptActionUsage Create(Core.DTO.Systems.Actions.AcceptActionUsage dto)
48+
public static Core.POCO.Systems.Actions.AcceptActionUsage Create(Core.DTO.Systems.Actions.AcceptActionUsage dto)
4949
{
5050
if (dto == null)
5151
{

SysML2.NET.Dal/Core/AutoGenElementFactory/ActionDefinitionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class ActionDefinitionFactory
4545
/// <exception cref="ArgumentNullException">
4646
/// thrown when <paramref name="dto"/> is null
4747
/// </exception>
48-
public Core.POCO.Systems.Actions.ActionDefinition Create(Core.DTO.Systems.Actions.ActionDefinition dto)
48+
public static Core.POCO.Systems.Actions.ActionDefinition Create(Core.DTO.Systems.Actions.ActionDefinition dto)
4949
{
5050
if (dto == null)
5151
{

SysML2.NET.Dal/Core/AutoGenElementFactory/ActionUsageFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class ActionUsageFactory
4545
/// <exception cref="ArgumentNullException">
4646
/// thrown when <paramref name="dto"/> is null
4747
/// </exception>
48-
public Core.POCO.Systems.Actions.ActionUsage Create(Core.DTO.Systems.Actions.ActionUsage dto)
48+
public static Core.POCO.Systems.Actions.ActionUsage Create(Core.DTO.Systems.Actions.ActionUsage dto)
4949
{
5050
if (dto == null)
5151
{

SysML2.NET.Dal/Core/AutoGenElementFactory/ActorMembershipFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class ActorMembershipFactory
4545
/// <exception cref="ArgumentNullException">
4646
/// thrown when <paramref name="dto"/> is null
4747
/// </exception>
48-
public Core.POCO.Systems.Requirements.ActorMembership Create(Core.DTO.Systems.Requirements.ActorMembership dto)
48+
public static Core.POCO.Systems.Requirements.ActorMembership Create(Core.DTO.Systems.Requirements.ActorMembership dto)
4949
{
5050
if (dto == null)
5151
{

SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationDefinitionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class AllocationDefinitionFactory
4545
/// <exception cref="ArgumentNullException">
4646
/// thrown when <paramref name="dto"/> is null
4747
/// </exception>
48-
public Core.POCO.Systems.Allocations.AllocationDefinition Create(Core.DTO.Systems.Allocations.AllocationDefinition dto)
48+
public static Core.POCO.Systems.Allocations.AllocationDefinition Create(Core.DTO.Systems.Allocations.AllocationDefinition dto)
4949
{
5050
if (dto == null)
5151
{

SysML2.NET.Dal/Core/AutoGenElementFactory/AllocationUsageFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class AllocationUsageFactory
4545
/// <exception cref="ArgumentNullException">
4646
/// thrown when <paramref name="dto"/> is null
4747
/// </exception>
48-
public Core.POCO.Systems.Allocations.AllocationUsage Create(Core.DTO.Systems.Allocations.AllocationUsage dto)
48+
public static Core.POCO.Systems.Allocations.AllocationUsage Create(Core.DTO.Systems.Allocations.AllocationUsage dto)
4949
{
5050
if (dto == null)
5151
{

0 commit comments

Comments
 (0)