title: How to disable entity framework from creating Nullable property's
body: <p>Is there a way to disable or to stop the entity framework from creating Nullable properties in complex class?</p>
  
  <p>Example, when I add a new stored procedure to the entity framework it generates a class like the one below.</p>
  
  <pre><code>    //------------------------------------------------------------------------------
  // &lt;auto-generated&gt;
  //    This code was generated from a template.
  //
  //    Manual changes to this file may cause unexpected behavior in your application.
  //    Manual changes to this file will be overwritten if the code is regenerated.
  // &lt;/auto-generated&gt;
  //------------------------------------------------------------------------------
  
  namespace StorefrontSystemDL
  {
      using System;
  
      public partial class proc_InsertLeafHorizontal_Result
      {
          public Nullable&lt;int&gt; SizeID { get; set; }
          public Nullable&lt;int&gt; FinishID { get; set; }
          public Nullable&lt;int&gt; SitelineID { get; set; }
      }
  }
  </code></pre>
  
  <p>How can i, do i, or is there a settings that i can set to where the entity framework does not create properties with Nullable types</p>
  
  <p>Below is a snap shot of the source columns.</p>
  
  <p><img src="https://i.stack.imgur.com/aUI9z.png" alt="Source Not Null"></p>
  
  <p>For my stored procedure here is the body of the tsql</p>
  
  <pre><code>    AS
  BEGIN
  SET NOCOUNT ON;
  
   BEGIN TRAN
     BEGIN TRY
  EXEC Storefront.proc_InsertHorizontal @Position,@Name,@Floor,@IsFiller,
                                        @WidthInches,@HeightInches,@WidthPercent,@HeightPercent,
                                        @DayliteWidthInches,@DayliteHeightInches,
                                        @Finish,@FinishNote,@FinishType,@FinishName,
                                        @ComponentID,@Note,
                                        @HorizontalID OUT;
      IF(@HorizontalID IS NOT NULL)
       INSERT INTO [StorefrontSystem].[Storefront].[LeafHorizontal]
             ([LeafID]
             ,[HorizontalID])
       VALUES
             (@LeafID,
              @HorizontalID)
  ----
  SELECT h.SizeID,h.FinishID,h.SitelineID FROM Storefront.Horizontal h WHERE h.ID = @HorizontalID;
  COMMIT TRAN
  END TRY
   BEGIN CATCH
     ROLLBACK TRAN;
   END CATCH
  SET NOCOUNT OFF;
  END;
  </code></pre>