BISharp.Contracts.Table.toPowerBiType C# (CSharp) Method

toPowerBiType() private static method

private static toPowerBiType ( Type propertyType ) : string
propertyType System.Type
return string
        private static string toPowerBiType(Type propertyType)
        {
            if (propertyType == typeof(int) || propertyType == typeof(long))
            {
                return "Int64";
            }
            if (propertyType == typeof(double) || propertyType == typeof(float))
            {
                return "Double";
            }
            if (propertyType == typeof(bool))
            {
                return "bool";
            }
            if (propertyType == typeof(DateTime))
            {
                return "DateTime";
            }

            return "string";
        }