protected override void CopyValues(ScalarProperty source) { var enumSource = source as EnumProperty; if (enumSource == null) { throw new NotSupportedException("The provided source was not a EnumPropertyBuilder."); } EnumTypeInfo = new ClrTypeInfo(enumSource.EnumType); UnderlyingNumericType = enumSource.UnderlyingNumericType; }
public static Type GetClrTypeFromNumericType(NumericPropertyType numericType) { return(_numericTypes.Where(p => p.Value == numericType).Select(p => p.Key).FirstOrDefault()); }