Skip to content

Commit d64bdb8

Browse files
committed
Issue rsm-hcd#34 and rsm-hcd#17: adding missing obsolete tags
1 parent d1688f0 commit d64bdb8

File tree

4 files changed

+5
-0
lines changed

4 files changed

+5
-0
lines changed

src/Conductors/RepositoryConductor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class RepositoryConductor<T> : Conductor, IRepositoryConductor<T>
3737
/// <param name="property">Property used to remove duplicates</param>
3838
/// <param name="createdById">Id of user creating the items</param>
3939
/// <returns></returns>
40+
[Obsolete("This method is deprecated in favor of its async counter part", false)]
4041
public virtual IResult<List<T>> BulkCreateDistinct<TKey>(IEnumerable<T> items, Func<T, TKey> property, long? createdById = null) => _createConductor.BulkCreateDistinct(items, property, createdById);
4142

4243
/// <summary>

src/Conductors/RepositoryCreateConductor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public partial class RepositoryCreateConductor<T> : Conductor, IRepositoryCreate
1717
#region IRepositoryCreateConductor
1818

1919
/// <inheritdoc />
20+
[Obsolete("This method is deprecated in favor of its async counter part", false)]
2021
public virtual IResult<List<T>> BulkCreate(IEnumerable<T> items, long? createdById = default(long?))
2122
{
2223
return _repository.BulkCreate(items, createdById);

src/Core/Interfaces/Conductors/IRepositoryCreateConductor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public partial interface IRepositoryCreateConductor<T>
3838
/// <param name="createdById">Id of the user creating the entity</param>
3939
/// <typeparam name="TKey"></typeparam>
4040
/// <returns></returns>
41+
[Obsolete("This method is deprecated in favor of its async counter part", false)]
4142
IResult<List<T>> BulkCreateDistinct<TKey>(IEnumerable<T> items, Func<T, TKey> property, long? createdById = null);
4243

4344
IResult<T> Create(T item, long? createdById = null);

src/Core/Interfaces/Data/IRepository.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public partial interface IRepository<T>
3131
/// <param name="items">that items of type <see cref="IEnumerable{T}" to be inserted</param>
3232
/// <param name="createdById">Audit field for who did this task</param>
3333
/// <returns></returns>
34+
[Obsolete("This method is deprecated in favor of its async counter part", false)]
3435
IResult<List<T>> BulkCreate(IEnumerable<T> items, long? createdById = null);
3536

3637

@@ -42,6 +43,7 @@ public partial interface IRepository<T>
4243
/// <param name="createdById">Audit field for who did this task</param>
4344
/// <typeparam name="TKey"></typeparam>
4445
/// <returns></returns>
46+
[Obsolete("This method is deprecated in favor of its async counter part", false)]
4547
IResult<List<T>> BulkCreateDistinct<TKey>(IEnumerable<T> items, Func<T, TKey> property, long? createdById = null);
4648

4749
/// <summary>

0 commit comments

Comments
 (0)