mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
update extension
This commit is contained in:
@@ -173,6 +173,15 @@ namespace Emby.Server.Implementations.Data
|
||||
return result[index].ReadGuid();
|
||||
}
|
||||
|
||||
public static void TryBind(this IReadOnlyDictionary<string, IBindParameter> bindParameters, string name, double value)
|
||||
{
|
||||
IBindParameter bindParam;
|
||||
if (bindParameters.TryGetValue(name, out bindParam))
|
||||
{
|
||||
bindParam.Bind(value);
|
||||
}
|
||||
}
|
||||
|
||||
public static void TryBind(this IReadOnlyDictionary<string, IBindParameter> bindParameters, string name, string value)
|
||||
{
|
||||
IBindParameter bindParam;
|
||||
@@ -191,6 +200,24 @@ namespace Emby.Server.Implementations.Data
|
||||
}
|
||||
}
|
||||
|
||||
public static void TryBind(this IReadOnlyDictionary<string, IBindParameter> bindParameters, string name, int value)
|
||||
{
|
||||
IBindParameter bindParam;
|
||||
if (bindParameters.TryGetValue(name, out bindParam))
|
||||
{
|
||||
bindParam.Bind(value);
|
||||
}
|
||||
}
|
||||
|
||||
public static void TryBind(this IReadOnlyDictionary<string, IBindParameter> bindParameters, string name, long value)
|
||||
{
|
||||
IBindParameter bindParam;
|
||||
if (bindParameters.TryGetValue(name, out bindParam))
|
||||
{
|
||||
bindParam.Bind(value);
|
||||
}
|
||||
}
|
||||
|
||||
public static void TryBind(this IReadOnlyDictionary<string, IBindParameter> bindParameters, string name, byte[] value)
|
||||
{
|
||||
IBindParameter bindParam;
|
||||
|
||||
Reference in New Issue
Block a user