I have Created class
public class UserAppearanceSettings
{
[Key]
public long Id { get; set; }
public string UserName { get; set; }
public string SkinName { get; set; }
public string FontName { get; set; }
public float FontSize { get; set; }
}
my sql table script
CREATE TABLE [dbo].[UserAppearanceSettings](
[Id] [bigint] IDENTITY(1,1) NOT NULL,
[UserName] [nvarchar](50) NULL,
[SkinName] [nvarchar](50) NULL,
[FontName] [nvarchar](50) NULL,
[FontSize] [float] NULL
) ON [PRIMARY]
and getting error
The 'FontSize' property on 'UserAppearanceSettings' could not be set to a 'System.Double' value. You must set this property to a non-null value of type 'System.Single'.
What datatype should I use in sqlserver for Float