Method WithEntity
WithEntity(IEnumerable<RecordView>, int)
Get all records matching an entity index.
Declaration
[ExcludeFromBurstCompatTesting("LINQ")]
public static IEnumerable<EntitiesJournaling.RecordView> WithEntity(this IEnumerable<EntitiesJournaling.RecordView> records, int index)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<EntitiesJournaling.RecordView> | records | |
int | index | The entity index. |
Returns
Type | Description |
---|---|
IEnumerable<EntitiesJournaling.RecordView> | IEnumerable of EntitiesJournaling.RecordView. |
Remarks
Throws InvalidOperationException if records are currently locked for write.
WithEntity(IEnumerable<RecordView>, int, int)
Get all records matching an entity index and version.
Declaration
[ExcludeFromBurstCompatTesting("LINQ")]
public static IEnumerable<EntitiesJournaling.RecordView> WithEntity(this IEnumerable<EntitiesJournaling.RecordView> records, int index, int version)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<EntitiesJournaling.RecordView> | records | |
int | index | The entity index. |
int | version | The entity version. |
Returns
Type | Description |
---|---|
IEnumerable<EntitiesJournaling.RecordView> | IEnumerable of EntitiesJournaling.RecordView. |
Remarks
Throws InvalidOperationException if records are currently locked for write.
WithEntity(IEnumerable<RecordView>, Entity)
Get all records matching an entity.
Declaration
[ExcludeFromBurstCompatTesting("LINQ")]
public static IEnumerable<EntitiesJournaling.RecordView> WithEntity(this IEnumerable<EntitiesJournaling.RecordView> records, Entity entity)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<EntitiesJournaling.RecordView> | records | |
Entity | entity | The entity. |
Returns
Type | Description |
---|---|
IEnumerable<EntitiesJournaling.RecordView> | IEnumerable of EntitiesJournaling.RecordView. |
Remarks
Throws InvalidOperationException if records are currently locked for write.
WithEntity(IEnumerable<RecordView>, string)
Get all records matching an existing entity name.
Declaration
[ExcludeFromBurstCompatTesting("LINQ")]
public static IEnumerable<EntitiesJournaling.RecordView> WithEntity(this IEnumerable<EntitiesJournaling.RecordView> records, string name)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<EntitiesJournaling.RecordView> | records | |
string | name | The entity name. |
Returns
Type | Description |
---|---|
IEnumerable<EntitiesJournaling.RecordView> | IEnumerable of EntitiesJournaling.RecordView. |
Remarks
Throws InvalidOperationException if records are currently locked for write.