public virtual BOTestAllFieldType MapModelToBO(
            int id,
            ApiTestAllFieldTypeRequestModel model
            )
        {
            BOTestAllFieldType boTestAllFieldType = new BOTestAllFieldType();

            boTestAllFieldType.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(boTestAllFieldType);
        }
Beispiel #2
0
        public virtual BOTestAllFieldType MapEFToBO(
            TestAllFieldType ef)
        {
            var bo = new BOTestAllFieldType();

            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);
        }