@@ -183,7 +183,7 @@ internal static void Add<TEntity>(PropertyInfo propertyInfo,
183183 /// <typeparam name="TEntity">The type of the data entity.</typeparam>
184184 /// <param name="expression">The expression to be parsed.</param>
185185 /// <returns>The mapped name of the property.</returns>
186- public static string Get < TEntity > ( Expression < Func < TEntity , object ? > > expression )
186+ public static string ? Get < TEntity > ( Expression < Func < TEntity , object ? > > expression )
187187 where TEntity : class =>
188188 Get < TEntity > ( ExpressionExtension . GetProperty ( expression ) ) ;
189189
@@ -193,7 +193,7 @@ public static string Get<TEntity>(Expression<Func<TEntity, object?>> expression)
193193 /// <typeparam name="TEntity">The target .NET CLR type.</typeparam>
194194 /// <param name="propertyName">The name of the property.</param>
195195 /// <returns>The mapped name of the property.</returns>
196- public static string Get < TEntity > ( string propertyName )
196+ public static string ? Get < TEntity > ( string propertyName )
197197 where TEntity : class =>
198198 Get < TEntity > ( TypeExtension . GetProperty < TEntity > ( propertyName ) ) ;
199199
@@ -203,7 +203,7 @@ public static string Get<TEntity>(string propertyName)
203203 /// <typeparam name="TEntity">The target .NET CLR type.</typeparam>
204204 /// <param name="field">The instance of <see cref="Field"/> object.</param>
205205 /// <returns>The mapped name of the property.</returns>
206- public static string Get < TEntity > ( Field field )
206+ public static string ? Get < TEntity > ( Field field )
207207 where TEntity : class =>
208208 Get < TEntity > ( TypeExtension . GetProperty < TEntity > ( field . FieldName ) ) ;
209209
@@ -214,7 +214,7 @@ public static string Get<TEntity>(Field field)
214214 /// <typeparam name="TEntity">The target .NET CLR type.</typeparam>
215215 /// <param name="propertyInfo">The instance of <see cref="PropertyInfo"/>.</param>
216216 /// <returns>The mapped name of the property.</returns>
217- internal static string Get < TEntity > ( PropertyInfo propertyInfo )
217+ internal static string ? Get < TEntity > ( PropertyInfo propertyInfo )
218218 where TEntity : class =>
219219 Get ( typeof ( TEntity ) , propertyInfo ) ;
220220
@@ -223,7 +223,7 @@ internal static string Get<TEntity>(PropertyInfo propertyInfo)
223223 /// </summary>
224224 /// <param name="propertyInfo">The instance of <see cref="PropertyInfo"/>.</param>
225225 /// <returns>The mapped name of the property.</returns>
226- internal static string Get ( PropertyInfo propertyInfo ) =>
226+ internal static string ? Get ( PropertyInfo propertyInfo ) =>
227227 Get ( propertyInfo . DeclaringType ! , propertyInfo ) ;
228228
229229 /// <summary>
@@ -232,7 +232,7 @@ internal static string Get(PropertyInfo propertyInfo) =>
232232 /// <param name="entityType">The target .NET CLR type.</param>
233233 /// <param name="propertyInfo">The instance of <see cref="PropertyInfo"/>.</param>
234234 /// <returns>The mapped name of the property.</returns>
235- internal static string Get ( Type entityType ,
235+ internal static string ? Get ( Type entityType ,
236236 PropertyInfo propertyInfo )
237237 {
238238 // Validate
0 commit comments