public static IInternalState New(string type) { var state = new AdfQuery() .Select() .From(SmartReferenceDescriber.Table) .New(DataSource); state.ID = IdManager.New<Guid>(); state.Set(SmartReferenceDescriber.Type, type); return state; }