Data/CafeLib.Data.Sources/SqlCommandProvider.cs
/// <summary>
/// Check Sql key type for requiring quotation.
/// </summary>
/// <typeparam name="TKey">key type</typeparam>
/// <returns>return quoted id for certain types</returns>
Check Sql key type for requiring quotation.
Check Sql key type for requiring quotation .
private static object DefaultSqlId<TKey>()
        {
            switch (typeof(TKey).Name)
            {
                case "String":
                    return string.Empty;
                case "Guid":
                    return Guid.Empty;
                default:
                    return 0;
            }
        }
private static object DefaultSqlId < TKey > ( ) { switch ( typeof ( TKey ) . Name ) { case " " : return string . Empty ; case " " : return Guid . Empty ; default : return 0 ; } }
Check Sql key type for requiring quotation.
Check Sql key type for requiring quotation .
return quoted id for certain types
return quoted id for certain types
typeparam
None