| 1234567891011121314151617181920212223242526 | 
							- using InABox.Clients;
 
- using InABox.Core;
 
- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Text;
 
- namespace Comal.Classes
 
- {
 
-     public interface IScannable
 
-     {
 
-     }
 
-     public class ScannableLookups : LookupGenerator<object>
 
-     {
 
-         public ScannableLookups(object[] items) : base(items)
 
-         {
 
-             var classes = CoreUtils.Entities
 
-                 .Where(x => x.IsSubclassOf(typeof(Entity)) && x.HasInterface<IScannable>() && x.GetInterfaces().Contains(typeof(IPersistent)))
 
-                 .OrderBy(x => x.EntityName().Split('.').Last()).ToArray();
 
-             foreach (var entity in classes)
 
-                 if (ClientFactory.IsSupported(entity))
 
-                     AddValue(entity.EntityName(), entity.EntityName().Split('.').Last());
 
-         }
 
-     }
 
- }
 
 
  |