sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/Utils/SqlColumnType.cs
/// <summary>
/// Converts the incoming <see cref="JTokenType"/> type into the equivalent SQL column type.
/// </summary>
/// <param name="type">The incoming <see cref="JTokenType"/> type.</param>
/// <param name="allowNull">If <c>true</c>, supports <see cref="JTokenType.Null"/>.</param>
/// <returns>The store type.</returns>
/// <exception cref="NotSupportedException">If the provided type is not supported by this store.</exception>
Converts the incoming  type into the equivalent SQL column type.
Converts the incoming type into the equivalent SQL column type .
public static string Get(JTokenType type, bool allowNull)
        {
            if (columnMapping.ContainsKey(type))
            {
                return columnMapping[type];
            }
            else if (type == JTokenType.Null && allowNull)
            {
                return null;
            }
            else
            {
                throw new NotSupportedException($"Property of type '{type}' is not supported.");
            }
        }
public static string Get ( JTokenType type , bool allowNull ) { if ( columnMapping . ContainsKey ( type ) ) { return columnMapping [ type ] ; } else if ( type == JTokenType . Null && allowNull ) { return null ; } else { throw new NotSupportedException ( $" Property of type ' { type } ' is not supported. " ) ; } }
Converts the incoming  type into the equivalent SQL column type.
Converts the incoming type into the equivalent SQL column type .
The store type.
The store type .
If the provided type is not supported by this store.
If the provided type is not supported by this store .
type
JTokenType
The incoming  type.
The incoming type .
allowNull
bool
None