title: What is equivalent data type for c# float in sql server
body: <p>I have Created class </p>
  
  <pre><code>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; }
  
  }
  </code></pre>
  
  <p>my sql table script</p>
  
  <pre><code>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] 
  </code></pre>
  
  <p>and getting error </p>
  
  <blockquote>
    <p>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'.</p>
  </blockquote>
  
  <p>What datatype should I use in sqlserver for Float</p>