private static void RegisterBioEngineProperties <TProperties>(string key, Type entityType, PropertiesRegistrationType registrationType = PropertiesRegistrationType.Entity) where TProperties : PropertiesSet, new() { var schema = Schema.ContainsKey(key) ? Schema[key] : null; if (schema == null) { schema = PropertiesSchema.Create <TProperties>(key); Schema.TryAdd(key, schema); } schema.AddRegistration(key, registrationType, entityType); }
public void AddRegistration(string key, PropertiesRegistrationType type, Type entityType) { _registrations.Add(new PropertiesRegistration(key, type, entityType)); }
public PropertiesRegistration(string key, PropertiesRegistrationType registrationType, Type entityType) { Key = key; EntityType = entityType; RegistrationType = registrationType; }