Ejemplo n.º 1
0
 public void AddTestAllFieldTypesNullable(ApiTestAllFieldTypesNullableResponseModel item)
 {
     if (!this.TestAllFieldTypesNullables.Any(x => x.Id == item.Id))
     {
         this.TestAllFieldTypesNullables.Add(item);
     }
 }
Ejemplo n.º 2
0
        public virtual ApiTestAllFieldTypesNullableResponseModel MapRequestToResponse(
            int id,
            ApiTestAllFieldTypesNullableRequestModel request)
        {
            var response = new ApiTestAllFieldTypesNullableResponseModel();

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