///
///building: the super administrator
///date: 2020-04-27 10:02
///description: warehouse coding
///& lt;/summary>
Public class Basic_StorehouseEntity
{
# region entity members
///& lt; summary>
///warehouse ID
///& lt;/summary>
[the Column (" BS_ID ")]
Public string BS_Id {get; set; }
///& lt; summary>
///warehouse name
///& lt;/summary>
[the Column (" BS_NAME ")]
Public string BS_Name {get; set; }
///& lt; summary>
///zero inventory restrictions: enable=1 is not enabled=0
///& lt;/summary>
[the Column (" BS_LIMIT ")]
Public byte? BS_Limit {get; set; }
///& lt; summary>
///zero inventory limit
///& lt;/summary>
[the Column (" BS_LIMIT_VALUE ")]
The public a decimal? BS_Limit_Value {get; set; }
According to the above entity saved if BS_LIMIT_VALUE input is stored in the database 0.0000000000 0.0001, ps database Settings of a decimal (18, 10)
CodePudding user response:
Has been resolved.The corresponding map Settings
Public Basic_StorehouseMap ()
{
# region tables, primary keys
//table
Enclosing ToTable (" BASIC_STOREHOUSE ");
//primary keys
Enclosing HasKey (t=& gt; T.B S_Id);
This Property (t=& gt; T.B S_Limit_Value). HasPrecision (18, 10) HasColumnName (" BS_Limit_Value ");//add the
# endregion
# region configuration relationship
# endregion
}