Пример #1
0
 /// <summary>
 /// Sets the specified <paramref name="namingConventions"/> into the configuration.
 /// </summary>
 /// <param name="namingConventions">The naming conventions to use.</param>
 /// <returns>the extension point for features configuration.</returns>
 public IConfigureFeatures Custom(params Feature.NamingConvention[] namingConventions)
 {
     _namingConvention = null;
     if (namingConventions != null)
         _namingConvention = type => namingConventions.Select(x => x(type)).FirstOrDefault(x => x != null);
     return this;
 }
Пример #2
0
 /// <summary>
 /// Sets the specified <paramref name="namingConventions"/> into the configuration.
 /// </summary>
 /// <param name="namingConventions">The naming conventions to use.</param>
 /// <returns>the extension point for features configuration.</returns>
 public IConfigureFeatures Custom(params Feature.NamingConvention[] namingConventions)
 {
     _namingConvention = null;
     if (namingConventions != null)
     {
         _namingConvention = type => namingConventions.Select(x => x(type)).FirstOrDefault(x => x != null);
     }
     return(this);
 }