tame-the-warnings #314
dotnet-build-and-test.yaml
on: pull_request
Matrix: build-and-test / build-and-test
Annotations
13 errors and 31 warnings
NexusMods.MnemonicDB.SourceGenerator.Tests.ArrayTest.TestModel
VerifyException : Directory: /Users/runner/work/NexusMods.MnemonicDB/NexusMods.MnemonicDB/tests/NexusMods.MnemonicDB.SourceGenerator.Tests
NotEqual:
- Received: ArrayTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.received.cs
Verified: ArrayTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.verified.cs
FileContent:
NotEqual:
Received: ArrayTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.received.cs
//HintName: NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.cs
#nullable enable
namespace NexusMods.MnemonicDB.SourceGenerator.Tests;
using global::System;
using global::System.Linq;
using global::System.Collections;
using global::System.Collections.Generic;
using global::TransparentValueObjects;
using global::NexusMods.MnemonicDB.Abstractions.Query;
using global::System.Reactive.Linq;
using global::DynamicData;
using global::Microsoft.Extensions.DependencyInjection;
using global::NexusMods.MnemonicDB.Abstractions;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Diagnostics.Contracts;
using __ABSTRACTIONS__ = NexusMods.MnemonicDB.Abstractions;
using __MODELS__ = NexusMods.MnemonicDB.Abstractions.Models;
using __SEGMENTS__ = NexusMods.MnemonicDB.Abstractions.IndexSegments;
using __DI__ = Microsoft.Extensions.DependencyInjection;
using __COMPARERS__ = NexusMods.MnemonicDB.Abstractions.ElementComparers;
/// <summary>
/// The top level model definition for the MyModelArrayTest model. This class is rarely
/// used directly, instead, the ReadOnly struct or the New class should be used.
/// </summary>
public partial class MyModelArrayTest : __MODELS__.IModelFactory<MyModelArrayTest, MyModelArrayTest.ReadOnly>
{
#region CRUD Methods
/// <summary>
/// A list of all required attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] RequiredAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModelArrayTest.MyAttribute,
};
/// <summary>
/// The primary attribute of the model, this really just means one of the required attributes of the model
/// if an entity has this attribute, it is considered a valid entity.
/// </summary>
public static __ABSTRACTIONS__.IAttribute PrimaryAttribute => NexusMods.MnemonicDB.SourceGenerator.Tests.MyModelArrayTest.MyAttribute;
/// <summary>
/// A list of all attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] AllAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModelArrayTest.MyAttribute,
};
/// <summary>
/// Returns all MyModelArrayTest entities in the database.
/// </summary>
public static __SEGMENTS__.Entities<MyModelArrayTest.ReadOnly> All(__ABSTRACTIONS__.IDb db) {
return db.Datoms(PrimaryAttribute).AsModels<MyModelArrayTest.ReadOnly>(db);
}
/// <summary>
/// Loads a model from the database, not providing any validation
/// </summary>
public static ReadOnly Load(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id) {
return new ReadOnly(db, id);
}
/// <summary>
/// Observe a model from the database, the stream ends when the model is deleted or otherwise invalidated
/// </summary>
public static IObservable<ReadOnly> Observe(IConnection conn, EntityId id)
{
return conn.ObserveDatoms(id)
.QueryWhenChanged(d => new ReadOnly(conn.Db, id))
.TakeWhile(model => model.IsValid());
}
/// <summary>
/// Observe all models of this type from the database
/// </summary>
public static IObservable<DynamicData.IChangeSet<ReadOnly, EntityId>> ObserveAll(IConnection conn)
{
return conn.ObserveDatoms(PrimaryAttribute)
.AsEntityIds()
.Transform(d => Load(conn.Db, d.E));
}
/// <summary>
/// Tries to get the entity with the given id from the database, if the model is invalid, it
|
NexusMods.MnemonicDB.SourceGenerator.Tests.BasicTest.TestModel
VerifyException : Directory: /Users/runner/work/NexusMods.MnemonicDB/NexusMods.MnemonicDB/tests/NexusMods.MnemonicDB.SourceGenerator.Tests
NotEqual:
- Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
Verified: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.verified.cs
FileContent:
NotEqual:
Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
//HintName: NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.cs
#nullable enable
namespace NexusMods.MnemonicDB.SourceGenerator.Tests;
using global::System;
using global::System.Linq;
using global::System.Collections;
using global::System.Collections.Generic;
using global::TransparentValueObjects;
using global::NexusMods.MnemonicDB.Abstractions.Query;
using global::System.Reactive.Linq;
using global::DynamicData;
using global::Microsoft.Extensions.DependencyInjection;
using global::NexusMods.MnemonicDB.Abstractions;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Diagnostics.Contracts;
using __ABSTRACTIONS__ = NexusMods.MnemonicDB.Abstractions;
using __MODELS__ = NexusMods.MnemonicDB.Abstractions.Models;
using __SEGMENTS__ = NexusMods.MnemonicDB.Abstractions.IndexSegments;
using __DI__ = Microsoft.Extensions.DependencyInjection;
using __COMPARERS__ = NexusMods.MnemonicDB.Abstractions.ElementComparers;
/// <summary>
/// The top level model definition for the MyModel model. This class is rarely
/// used directly, instead, the ReadOnly struct or the New class should be used.
/// </summary>
public partial class MyModel : __MODELS__.IModelFactory<MyModel, MyModel.ReadOnly>
{
#region CRUD Methods
/// <summary>
/// A list of all required attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] RequiredAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// The primary attribute of the model, this really just means one of the required attributes of the model
/// if an entity has this attribute, it is considered a valid entity.
/// </summary>
public static __ABSTRACTIONS__.IAttribute PrimaryAttribute => NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name;
/// <summary>
/// A list of all attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] AllAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// Returns all MyModel entities in the database.
/// </summary>
public static __SEGMENTS__.Entities<MyModel.ReadOnly> All(__ABSTRACTIONS__.IDb db) {
return db.Datoms(PrimaryAttribute).AsModels<MyModel.ReadOnly>(db);
}
/// <summary>
/// Loads a model from the database, not providing any validation
/// </summary>
public static ReadOnly Load(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id) {
return new ReadOnly(db, id);
}
/// <summary>
/// Observe a model from the database, the stream ends when the model is deleted or otherwise invalidated
/// </summary>
public static IObservable<ReadOnly> Observe(IConnection conn, EntityId id)
{
return conn.ObserveDatoms(id)
.QueryWhenChanged(d => new ReadOnly(conn.Db, id))
.TakeWhile(model => model.IsValid());
}
/// <summary>
/// Observe all models of this type from the database
/// </summary>
public static IObservable<DynamicData.IChangeSet<ReadOnly, EntityId>> ObserveAll(IConnection conn)
{
return conn.ObserveDatoms(PrimaryAttribute)
.AsEntityIds()
.Transform(d => Load(conn.Db, d.E));
}
/// <summary>
/// Tries to get the entity with the given id from the database, if the model is invalid, it returns false.
/// </summary>
public static bool TryGet(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id, [NotNullWhen(true)] out MyMo
|
build-and-test / Build and Test (macos-latest)
Process completed with exit code 1.
|
build-and-test / Build and Test (windows-latest)
The job was canceled because "macos-latest" failed.
|
build-and-test / Build and Test (windows-latest)
The operation was canceled.
|
build-and-test / Build and Test (macos-13)
The job was canceled because "macos-latest" failed.
|
NexusMods.MnemonicDB.SourceGenerator.Tests.ArrayTest.TestModel
VerifyException : Directory: /Users/runner/work/NexusMods.MnemonicDB/NexusMods.MnemonicDB/tests/NexusMods.MnemonicDB.SourceGenerator.Tests
NotEqual:
- Received: ArrayTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.received.cs
Verified: ArrayTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.verified.cs
FileContent:
NotEqual:
Received: ArrayTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.received.cs
//HintName: NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.cs
#nullable enable
namespace NexusMods.MnemonicDB.SourceGenerator.Tests;
using global::System;
using global::System.Linq;
using global::System.Collections;
using global::System.Collections.Generic;
using global::TransparentValueObjects;
using global::NexusMods.MnemonicDB.Abstractions.Query;
using global::System.Reactive.Linq;
using global::DynamicData;
using global::Microsoft.Extensions.DependencyInjection;
using global::NexusMods.MnemonicDB.Abstractions;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Diagnostics.Contracts;
using __ABSTRACTIONS__ = NexusMods.MnemonicDB.Abstractions;
using __MODELS__ = NexusMods.MnemonicDB.Abstractions.Models;
using __SEGMENTS__ = NexusMods.MnemonicDB.Abstractions.IndexSegments;
using __DI__ = Microsoft.Extensions.DependencyInjection;
using __COMPARERS__ = NexusMods.MnemonicDB.Abstractions.ElementComparers;
/// <summary>
/// The top level model definition for the MyModelArrayTest model. This class is rarely
/// used directly, instead, the ReadOnly struct or the New class should be used.
/// </summary>
public partial class MyModelArrayTest : __MODELS__.IModelFactory<MyModelArrayTest, MyModelArrayTest.ReadOnly>
{
#region CRUD Methods
/// <summary>
/// A list of all required attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] RequiredAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModelArrayTest.MyAttribute,
};
/// <summary>
/// The primary attribute of the model, this really just means one of the required attributes of the model
/// if an entity has this attribute, it is considered a valid entity.
/// </summary>
public static __ABSTRACTIONS__.IAttribute PrimaryAttribute => NexusMods.MnemonicDB.SourceGenerator.Tests.MyModelArrayTest.MyAttribute;
/// <summary>
/// A list of all attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] AllAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModelArrayTest.MyAttribute,
};
/// <summary>
/// Returns all MyModelArrayTest entities in the database.
/// </summary>
public static __SEGMENTS__.Entities<MyModelArrayTest.ReadOnly> All(__ABSTRACTIONS__.IDb db) {
return db.Datoms(PrimaryAttribute).AsModels<MyModelArrayTest.ReadOnly>(db);
}
/// <summary>
/// Loads a model from the database, not providing any validation
/// </summary>
public static ReadOnly Load(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id) {
return new ReadOnly(db, id);
}
/// <summary>
/// Observe a model from the database, the stream ends when the model is deleted or otherwise invalidated
/// </summary>
public static IObservable<ReadOnly> Observe(IConnection conn, EntityId id)
{
return conn.ObserveDatoms(id)
.QueryWhenChanged(d => new ReadOnly(conn.Db, id))
.TakeWhile(model => model.IsValid());
}
/// <summary>
/// Observe all models of this type from the database
/// </summary>
public static IObservable<DynamicData.IChangeSet<ReadOnly, EntityId>> ObserveAll(IConnection conn)
{
return conn.ObserveDatoms(PrimaryAttribute)
.AsEntityIds()
.Transform(d => Load(conn.Db, d.E));
}
/// <summary>
/// Tries to get the entity with the given id from the database, if the model is invalid, it
|
NexusMods.MnemonicDB.SourceGenerator.Tests.BasicTest.TestModel
VerifyException : Directory: /Users/runner/work/NexusMods.MnemonicDB/NexusMods.MnemonicDB/tests/NexusMods.MnemonicDB.SourceGenerator.Tests
NotEqual:
- Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
Verified: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.verified.cs
FileContent:
NotEqual:
Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
//HintName: NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.cs
#nullable enable
namespace NexusMods.MnemonicDB.SourceGenerator.Tests;
using global::System;
using global::System.Linq;
using global::System.Collections;
using global::System.Collections.Generic;
using global::TransparentValueObjects;
using global::NexusMods.MnemonicDB.Abstractions.Query;
using global::System.Reactive.Linq;
using global::DynamicData;
using global::Microsoft.Extensions.DependencyInjection;
using global::NexusMods.MnemonicDB.Abstractions;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Diagnostics.Contracts;
using __ABSTRACTIONS__ = NexusMods.MnemonicDB.Abstractions;
using __MODELS__ = NexusMods.MnemonicDB.Abstractions.Models;
using __SEGMENTS__ = NexusMods.MnemonicDB.Abstractions.IndexSegments;
using __DI__ = Microsoft.Extensions.DependencyInjection;
using __COMPARERS__ = NexusMods.MnemonicDB.Abstractions.ElementComparers;
/// <summary>
/// The top level model definition for the MyModel model. This class is rarely
/// used directly, instead, the ReadOnly struct or the New class should be used.
/// </summary>
public partial class MyModel : __MODELS__.IModelFactory<MyModel, MyModel.ReadOnly>
{
#region CRUD Methods
/// <summary>
/// A list of all required attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] RequiredAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// The primary attribute of the model, this really just means one of the required attributes of the model
/// if an entity has this attribute, it is considered a valid entity.
/// </summary>
public static __ABSTRACTIONS__.IAttribute PrimaryAttribute => NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name;
/// <summary>
/// A list of all attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] AllAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// Returns all MyModel entities in the database.
/// </summary>
public static __SEGMENTS__.Entities<MyModel.ReadOnly> All(__ABSTRACTIONS__.IDb db) {
return db.Datoms(PrimaryAttribute).AsModels<MyModel.ReadOnly>(db);
}
/// <summary>
/// Loads a model from the database, not providing any validation
/// </summary>
public static ReadOnly Load(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id) {
return new ReadOnly(db, id);
}
/// <summary>
/// Observe a model from the database, the stream ends when the model is deleted or otherwise invalidated
/// </summary>
public static IObservable<ReadOnly> Observe(IConnection conn, EntityId id)
{
return conn.ObserveDatoms(id)
.QueryWhenChanged(d => new ReadOnly(conn.Db, id))
.TakeWhile(model => model.IsValid());
}
/// <summary>
/// Observe all models of this type from the database
/// </summary>
public static IObservable<DynamicData.IChangeSet<ReadOnly, EntityId>> ObserveAll(IConnection conn)
{
return conn.ObserveDatoms(PrimaryAttribute)
.AsEntityIds()
.Transform(d => Load(conn.Db, d.E));
}
/// <summary>
/// Tries to get the entity with the given id from the database, if the model is invalid, it returns false.
/// </summary>
public static bool TryGet(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id, [NotNullWhen(true)] out MyMo
|
build-and-test / Build and Test (macos-13)
The operation was canceled.
|
build-and-test / Build and Test (ubuntu-latest)
The job was canceled because "macos-latest" failed.
|
NexusMods.MnemonicDB.SourceGenerator.Tests.BasicTest.TestModel
VerifyException : Directory: /home/runner/work/NexusMods.MnemonicDB/NexusMods.MnemonicDB/tests/NexusMods.MnemonicDB.SourceGenerator.Tests
NotEqual:
- Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
Verified: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.verified.cs
FileContent:
NotEqual:
Received: BasicTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.received.cs
//HintName: NexusMods_MnemonicDB_SourceGenerator_Tests_MyModel.Generated.cs
#nullable enable
namespace NexusMods.MnemonicDB.SourceGenerator.Tests;
using global::System;
using global::System.Linq;
using global::System.Collections;
using global::System.Collections.Generic;
using global::TransparentValueObjects;
using global::NexusMods.MnemonicDB.Abstractions.Query;
using global::System.Reactive.Linq;
using global::DynamicData;
using global::Microsoft.Extensions.DependencyInjection;
using global::NexusMods.MnemonicDB.Abstractions;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Diagnostics.Contracts;
using __ABSTRACTIONS__ = NexusMods.MnemonicDB.Abstractions;
using __MODELS__ = NexusMods.MnemonicDB.Abstractions.Models;
using __SEGMENTS__ = NexusMods.MnemonicDB.Abstractions.IndexSegments;
using __DI__ = Microsoft.Extensions.DependencyInjection;
using __COMPARERS__ = NexusMods.MnemonicDB.Abstractions.ElementComparers;
/// <summary>
/// The top level model definition for the MyModel model. This class is rarely
/// used directly, instead, the ReadOnly struct or the New class should be used.
/// </summary>
public partial class MyModel : __MODELS__.IModelFactory<MyModel, MyModel.ReadOnly>
{
#region CRUD Methods
/// <summary>
/// A list of all required attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] RequiredAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// The primary attribute of the model, this really just means one of the required attributes of the model
/// if an entity has this attribute, it is considered a valid entity.
/// </summary>
public static __ABSTRACTIONS__.IAttribute PrimaryAttribute => NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name;
/// <summary>
/// A list of all attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] AllAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModel.Name,
};
/// <summary>
/// Returns all MyModel entities in the database.
/// </summary>
public static __SEGMENTS__.Entities<MyModel.ReadOnly> All(__ABSTRACTIONS__.IDb db) {
return db.Datoms(PrimaryAttribute).AsModels<MyModel.ReadOnly>(db);
}
/// <summary>
/// Loads a model from the database, not providing any validation
/// </summary>
public static ReadOnly Load(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id) {
return new ReadOnly(db, id);
}
/// <summary>
/// Observe a model from the database, the stream ends when the model is deleted or otherwise invalidated
/// </summary>
public static IObservable<ReadOnly> Observe(IConnection conn, EntityId id)
{
return conn.ObserveDatoms(id)
.QueryWhenChanged(d => new ReadOnly(conn.Db, id))
.TakeWhile(model => model.IsValid());
}
/// <summary>
/// Observe all models of this type from the database
/// </summary>
public static IObservable<DynamicData.IChangeSet<ReadOnly, EntityId>> ObserveAll(IConnection conn)
{
return conn.ObserveDatoms(PrimaryAttribute)
.AsEntityIds()
.Transform(d => Load(conn.Db, d.E));
}
/// <summary>
/// Tries to get the entity with the given id from the database, if the model is invalid, it returns false.
/// </summary>
public static bool TryGet(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id, [NotNullWhen(true)] out MyMod
|
NexusMods.MnemonicDB.SourceGenerator.Tests.ArrayTest.TestModel
VerifyException : Directory: /home/runner/work/NexusMods.MnemonicDB/NexusMods.MnemonicDB/tests/NexusMods.MnemonicDB.SourceGenerator.Tests
NotEqual:
- Received: ArrayTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.received.cs
Verified: ArrayTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.verified.cs
FileContent:
NotEqual:
Received: ArrayTest#NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.received.cs
//HintName: NexusMods_MnemonicDB_SourceGenerator_Tests_MyModelArrayTest.Generated.cs
#nullable enable
namespace NexusMods.MnemonicDB.SourceGenerator.Tests;
using global::System;
using global::System.Linq;
using global::System.Collections;
using global::System.Collections.Generic;
using global::TransparentValueObjects;
using global::NexusMods.MnemonicDB.Abstractions.Query;
using global::System.Reactive.Linq;
using global::DynamicData;
using global::Microsoft.Extensions.DependencyInjection;
using global::NexusMods.MnemonicDB.Abstractions;
using global::System.Diagnostics.CodeAnalysis;
using global::System.Diagnostics.Contracts;
using __ABSTRACTIONS__ = NexusMods.MnemonicDB.Abstractions;
using __MODELS__ = NexusMods.MnemonicDB.Abstractions.Models;
using __SEGMENTS__ = NexusMods.MnemonicDB.Abstractions.IndexSegments;
using __DI__ = Microsoft.Extensions.DependencyInjection;
using __COMPARERS__ = NexusMods.MnemonicDB.Abstractions.ElementComparers;
/// <summary>
/// The top level model definition for the MyModelArrayTest model. This class is rarely
/// used directly, instead, the ReadOnly struct or the New class should be used.
/// </summary>
public partial class MyModelArrayTest : __MODELS__.IModelFactory<MyModelArrayTest, MyModelArrayTest.ReadOnly>
{
#region CRUD Methods
/// <summary>
/// A list of all required attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] RequiredAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModelArrayTest.MyAttribute,
};
/// <summary>
/// The primary attribute of the model, this really just means one of the required attributes of the model
/// if an entity has this attribute, it is considered a valid entity.
/// </summary>
public static __ABSTRACTIONS__.IAttribute PrimaryAttribute => NexusMods.MnemonicDB.SourceGenerator.Tests.MyModelArrayTest.MyAttribute;
/// <summary>
/// A list of all attributes of the model.
/// </summary>
public static __ABSTRACTIONS__.IAttribute[] AllAttributes => new __ABSTRACTIONS__.IAttribute[] {
NexusMods.MnemonicDB.SourceGenerator.Tests.MyModelArrayTest.MyAttribute,
};
/// <summary>
/// Returns all MyModelArrayTest entities in the database.
/// </summary>
public static __SEGMENTS__.Entities<MyModelArrayTest.ReadOnly> All(__ABSTRACTIONS__.IDb db) {
return db.Datoms(PrimaryAttribute).AsModels<MyModelArrayTest.ReadOnly>(db);
}
/// <summary>
/// Loads a model from the database, not providing any validation
/// </summary>
public static ReadOnly Load(__ABSTRACTIONS__.IDb db, __ABSTRACTIONS__.EntityId id) {
return new ReadOnly(db, id);
}
/// <summary>
/// Observe a model from the database, the stream ends when the model is deleted or otherwise invalidated
/// </summary>
public static IObservable<ReadOnly> Observe(IConnection conn, EntityId id)
{
return conn.ObserveDatoms(id)
.QueryWhenChanged(d => new ReadOnly(conn.Db, id))
.TakeWhile(model => model.IsValid());
}
/// <summary>
/// Observe all models of this type from the database
/// </summary>
public static IObservable<DynamicData.IChangeSet<ReadOnly, EntityId>> ObserveAll(IConnection conn)
{
return conn.ObserveDatoms(PrimaryAttribute)
.AsEntityIds()
.Transform(d => Load(conn.Db, d.E));
}
/// <summary>
/// Tries to get the entity with the given id from the database, if the model is invalid, it r
|
build-and-test / Build and Test (ubuntu-latest)
The operation was canceled.
|
build-and-test / Build and Test (macos-latest)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
build-and-test / Build and Test (macos-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)'
|
build-and-test / Build and Test (macos-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.Write(Utf8JsonWriter, EntityId, JsonSerializerOptions)'
|
build-and-test / Build and Test (macos-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)'
|
build-and-test / Build and Test (macos-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.WriteAsPropertyName(Utf8JsonWriter, EntityId, JsonSerializerOptions)'
|
build-and-test / Build and Test (macos-latest)
XML comment has cref attribute 'ValueConverter{TModel,TProvider}' that could not be resolved
|
build-and-test / Build and Test (macos-latest)
XML comment has cref attribute 'ValueComparer{T}' that could not be resolved
|
build-and-test / Build and Test (macos-latest):
src/NexusMods.MnemonicDB/Storage/RocksDbBackend/Backend.cs#L10
Missing XML comment for publicly visible type or member 'Backend'
|
build-and-test / Build and Test (macos-latest)
XML comment has cref attribute 'ValueConverter{TModel,TProvider}' that could not be resolved
|
build-and-test / Build and Test (macos-latest)
XML comment has cref attribute 'ValueComparer{T}' that could not be resolved
|
build-and-test / Build and Test (macos-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)'
|
build-and-test / Build and Test (macos-13)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)'
|
build-and-test / Build and Test (macos-13)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.Write(Utf8JsonWriter, EntityId, JsonSerializerOptions)'
|
build-and-test / Build and Test (macos-13)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)'
|
build-and-test / Build and Test (macos-13)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.WriteAsPropertyName(Utf8JsonWriter, EntityId, JsonSerializerOptions)'
|
build-and-test / Build and Test (macos-13)
XML comment has cref attribute 'ValueConverter{TModel,TProvider}' that could not be resolved
|
build-and-test / Build and Test (macos-13)
XML comment has cref attribute 'ValueComparer{T}' that could not be resolved
|
build-and-test / Build and Test (macos-13):
src/NexusMods.MnemonicDB/Storage/RocksDbBackend/Backend.cs#L10
Missing XML comment for publicly visible type or member 'Backend'
|
build-and-test / Build and Test (macos-13)
XML comment has cref attribute 'ValueConverter{TModel,TProvider}' that could not be resolved
|
build-and-test / Build and Test (macos-13)
XML comment has cref attribute 'ValueComparer{T}' that could not be resolved
|
build-and-test / Build and Test (macos-13)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)'
|
build-and-test / Build and Test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)'
|
build-and-test / Build and Test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.Write(Utf8JsonWriter, EntityId, JsonSerializerOptions)'
|
build-and-test / Build and Test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)'
|
build-and-test / Build and Test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.WriteAsPropertyName(Utf8JsonWriter, EntityId, JsonSerializerOptions)'
|
build-and-test / Build and Test (ubuntu-latest)
XML comment has cref attribute 'ValueConverter{TModel,TProvider}' that could not be resolved
|
build-and-test / Build and Test (ubuntu-latest)
XML comment has cref attribute 'ValueComparer{T}' that could not be resolved
|
build-and-test / Build and Test (ubuntu-latest):
src/NexusMods.MnemonicDB/Storage/RocksDbBackend/Backend.cs#L10
Missing XML comment for publicly visible type or member 'Backend'
|
build-and-test / Build and Test (ubuntu-latest)
XML comment has cref attribute 'ValueConverter{TModel,TProvider}' that could not be resolved
|
build-and-test / Build and Test (ubuntu-latest)
XML comment has cref attribute 'ValueComparer{T}' that could not be resolved
|
build-and-test / Build and Test (ubuntu-latest)
Missing XML comment for publicly visible type or member 'EntityId.JsonConverter.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)'
|