public static IEnumerable<object> BuildProjectionsWithWhenConvention(IAtomicStorageFactory factory) { yield return new AccountLoginsProjection(factory.GetEntityWriter<SecurityId, AccountLoginsView>()); yield return new LoginViewProjection(factory.GetEntityWriter<UserId, LoginView>()); yield return new LoginsIndexProjection(factory.GetEntityWriter<unit, LoginsIndexView>()); yield return new SecurityProjection(factory.GetEntityWriter<SecurityId, SecurityView>()); }
public static IEnumerable <object> BuildProjectionsWithWhenConvention(IAtomicStorageFactory factory) { yield return(new AccountLoginsProjection(factory.GetEntityWriter <SecurityId, AccountLoginsView>())); yield return(new LoginViewProjection(factory.GetEntityWriter <UserId, LoginView>())); yield return(new LoginsIndexProjection(factory.GetEntityWriter <unit, LoginsIndexView>())); yield return(new SecurityProjection(factory.GetEntityWriter <SecurityId, SecurityView>())); }
public bool TryDeleteEntity <TEntity>(object key) { return(Factory.GetEntityWriter <object, TEntity>().TryDelete(key)); }