Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 2d85e21

Browse files
committed
Use non-deprecated ToSet()
1 parent bc5d3af commit 2d85e21

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ServiceStack.OrmLite/Async/OrmLiteWriteCommandExtensionsAsync.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ internal static async Task InsertUsingDefaultsAsync<T>(this IDbCommand dbCmd, T[
395395
var fieldsWithoutDefaults = modelDef.FieldDefinitionsArray
396396
.Where(x => x.DefaultValue == null)
397397
.Select(x => x.Name)
398-
.ToHashSet();
398+
.ToSet();
399399

400400
dialectProvider.PrepareParameterizedInsertStatement<T>(dbCmd, insertFields: fieldsWithoutDefaults);
401401

src/ServiceStack.OrmLite/OrmLiteResultsFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public HashSet<T> GetColumnDistinct<T>(IDbCommand dbCmd)
255255
{
256256
Filter(dbCmd);
257257
var results = GetColumnDistinctResults<T>(dbCmd) ?? GetColumnResults<T>(dbCmd);
258-
return (from object result in results select (T)result).ToHashSet();
258+
return (from object result in results select (T)result).ToSet();
259259
}
260260

261261
public Dictionary<K, V> GetDictionary<K, V>(IDbCommand dbCmd)

src/ServiceStack.OrmLite/OrmLiteWriteCommandExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ internal static void InsertUsingDefaults<T>(this IDbCommand dbCmd, params T[] ob
910910
var fieldsWithoutDefaults = modelDef.FieldDefinitionsArray
911911
.Where(x => x.DefaultValue == null)
912912
.Select(x => x.Name)
913-
.ToHashSet();
913+
.ToSet();
914914

915915
dialectProvider.PrepareParameterizedInsertStatement<T>(dbCmd,
916916
insertFields: fieldsWithoutDefaults);

0 commit comments

Comments
 (0)