# C1.Web.Mvc.BaseODataCollectionViewService-1.DataTypes

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Web_Mvc_BaseODataCollectionViewService_1_DataTypes_" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.DataTypes*">DataTypes Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Web_Mvc_BaseODataCollectionViewService_1_DataTypes_" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.DataTypes*"></a>
<h4 id="C1_Web_Mvc_BaseODataCollectionViewService_1_DataTypes" data-uid="C1.Web.Mvc.BaseODataCollectionViewService`1.DataTypes">DataTypes</h4>
<div class="markdown level1 summary"><p>Gets or sets an object to be used as a map for coercing data types when loading the data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IDictionary&lt;string, DataType&gt; DataTypes { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property DataTypes As IDictionary(Of String, DataType)</code></pre>
</div>
<h5 id="C1_Web_Mvc_BaseODataCollectionViewService_1_DataTypes_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The object keys represent the field names and the values are <a class="xref" href="C1.Web.Mvc.Grid.DataType.html">DataType</a> values that indicate how the data should be coerced.</p>
</div>
</div>
