Skip to content

Commit

Permalink
Merge pull request IntertechInc#6 from IntertechInc/cameldoc
Browse files Browse the repository at this point in the history
Update README.md with camel casing documentation.
  • Loading branch information
richinator38 committed Jul 2, 2015
2 parents df3fb33 + bcea13e commit 8138ff1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ Typically, the following code would reside on the Web API controller code:
{
var valHelper = new ValidationHelper();
object jsonObject = valHelper.GetValidations(dtoObjectName, jsonObjectName,
"Namespace.If.Doesnt.Match.Assembly", "DTO.Assembly.Name");
"Namespace.If.Doesnt.Match.Assembly", useCamelCaseForProperties, "DTO.Assembly.Name");

return Ok(jsonObject);
}
```
- dtoObjectName is the name of the class in your DTO assembly.
- jsonObjectName is the name of the model object on your website.
- "Namespace.If.Doesnt.Match.Assembly" is an alternate namespace...by default is uses DTO.Assembly.Name.
- "useCamelCaseForProperties" is a bool indicating if the helper should provide case alteration to property names to produce camel case.
- "DTO.Assembly.Name" is the name of the assembly to load for reflecting the DTO properties that have validation attributes.

##DTO Example
Expand Down Expand Up @@ -137,4 +138,4 @@ The controller now can inject validationData since it was resolved in the router
$scope.formconfig = angular.isUndefined(validationData) ? undefined : validationData.data;
}
}
```
```

0 comments on commit 8138ff1

Please sign in to comment.