public virtual ApiTestAllFieldTypesNullableResponseModel MapBOToModel(
            BOTestAllFieldTypesNullable boTestAllFieldTypesNullable)
        {
            var model = new ApiTestAllFieldTypesNullableResponseModel();

            model.SetProperties(boTestAllFieldTypesNullable.Id, boTestAllFieldTypesNullable.FieldBigInt, boTestAllFieldTypesNullable.FieldBinary, boTestAllFieldTypesNullable.FieldBit, boTestAllFieldTypesNullable.FieldChar, boTestAllFieldTypesNullable.FieldDate, boTestAllFieldTypesNullable.FieldDateTime, boTestAllFieldTypesNullable.FieldDateTime2, boTestAllFieldTypesNullable.FieldDateTimeOffset, boTestAllFieldTypesNullable.FieldDecimal, boTestAllFieldTypesNullable.FieldFloat, boTestAllFieldTypesNullable.FieldImage, boTestAllFieldTypesNullable.FieldMoney, boTestAllFieldTypesNullable.FieldNChar, boTestAllFieldTypesNullable.FieldNText, boTestAllFieldTypesNullable.FieldNumeric, boTestAllFieldTypesNullable.FieldNVarchar, boTestAllFieldTypesNullable.FieldReal, boTestAllFieldTypesNullable.FieldSmallDateTime, boTestAllFieldTypesNullable.FieldSmallInt, boTestAllFieldTypesNullable.FieldSmallMoney, boTestAllFieldTypesNullable.FieldText, boTestAllFieldTypesNullable.FieldTime, boTestAllFieldTypesNullable.FieldTimestamp, boTestAllFieldTypesNullable.FieldTinyInt, boTestAllFieldTypesNullable.FieldUniqueIdentifier, boTestAllFieldTypesNullable.FieldVarBinary, boTestAllFieldTypesNullable.FieldVarchar, boTestAllFieldTypesNullable.FieldXML);

            return(model);
        }
        public virtual BOTestAllFieldTypesNullable MapModelToBO(
            int id,
            ApiTestAllFieldTypesNullableRequestModel model
            )
        {
            BOTestAllFieldTypesNullable boTestAllFieldTypesNullable = new BOTestAllFieldTypesNullable();

            boTestAllFieldTypesNullable.SetProperties(
                id,
                model.FieldBigInt,
                model.FieldBinary,
                model.FieldBit,
                model.FieldChar,
                model.FieldDate,
                model.FieldDateTime,
                model.FieldDateTime2,
                model.FieldDateTimeOffset,
                model.FieldDecimal,
                model.FieldFloat,
                model.FieldImage,
                model.FieldMoney,
                model.FieldNChar,
                model.FieldNText,
                model.FieldNumeric,
                model.FieldNVarchar,
                model.FieldReal,
                model.FieldSmallDateTime,
                model.FieldSmallInt,
                model.FieldSmallMoney,
                model.FieldText,
                model.FieldTime,
                model.FieldTimestamp,
                model.FieldTinyInt,
                model.FieldUniqueIdentifier,
                model.FieldVarBinary,
                model.FieldVarchar,
                model.FieldXML);
            return(boTestAllFieldTypesNullable);
        }
        public virtual BOTestAllFieldTypesNullable MapEFToBO(
            TestAllFieldTypesNullable ef)
        {
            var bo = new BOTestAllFieldTypesNullable();

            bo.SetProperties(
                ef.Id,
                ef.FieldBigInt,
                ef.FieldBinary,
                ef.FieldBit,
                ef.FieldChar,
                ef.FieldDate,
                ef.FieldDateTime,
                ef.FieldDateTime2,
                ef.FieldDateTimeOffset,
                ef.FieldDecimal,
                ef.FieldFloat,
                ef.FieldImage,
                ef.FieldMoney,
                ef.FieldNChar,
                ef.FieldNText,
                ef.FieldNumeric,
                ef.FieldNVarchar,
                ef.FieldReal,
                ef.FieldSmallDateTime,
                ef.FieldSmallInt,
                ef.FieldSmallMoney,
                ef.FieldText,
                ef.FieldTime,
                ef.FieldTimestamp,
                ef.FieldTinyInt,
                ef.FieldUniqueIdentifier,
                ef.FieldVarBinary,
                ef.FieldVarchar,
                ef.FieldXML);
            return(bo);
        }
        public virtual TestAllFieldTypesNullable MapBOToEF(
            BOTestAllFieldTypesNullable bo)
        {
            TestAllFieldTypesNullable efTestAllFieldTypesNullable = new TestAllFieldTypesNullable();

            efTestAllFieldTypesNullable.SetProperties(
                bo.FieldBigInt,
                bo.FieldBinary,
                bo.FieldBit,
                bo.FieldChar,
                bo.FieldDate,
                bo.FieldDateTime,
                bo.FieldDateTime2,
                bo.FieldDateTimeOffset,
                bo.FieldDecimal,
                bo.FieldFloat,
                bo.FieldImage,
                bo.FieldMoney,
                bo.FieldNChar,
                bo.FieldNText,
                bo.FieldNumeric,
                bo.FieldNVarchar,
                bo.FieldReal,
                bo.FieldSmallDateTime,
                bo.FieldSmallInt,
                bo.FieldSmallMoney,
                bo.FieldText,
                bo.FieldTime,
                bo.FieldTimestamp,
                bo.FieldTinyInt,
                bo.FieldUniqueIdentifier,
                bo.FieldVarBinary,
                bo.FieldVarchar,
                bo.FieldXML,
                bo.Id);
            return(efTestAllFieldTypesNullable);
        }