Exemplo n.º 1
0
        internal static IOrmConfiguration GetConfiguration(OrmConfigurationElement ormConfigurationElement)
        {
            var result = new Core.Data.Objects.OrmConfiguration(
                ormConfigurationElement.Name, ormConfigurationElement.Path, ormConfigurationElement.DatabaseName)
            {
                ControlTypes = GetSupportedTypes(ormConfigurationElement)
            };

            return(result);
        }
Exemplo n.º 2
0
 internal static IList <string> GetSupportedTypes(OrmConfigurationElement ormConfigurationElement)
 {
     return((from OrmTypeMapElement suypportedType in ormConfigurationElement.IncludeTypes
             select suypportedType.Name).ToList());
 }