Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 SimpleRepository 执行存储过程并获得类型列表作为答案?我正在使用 SubSonic 3。
谢谢。
找到我的答案:
StoredProcedure sproc = new StoredProcedure("SprocName", ProviderFactory.GetProvider(ConnectionStringName)); string input= "input text"; sproc.Command.AddParameter("input", input, DbType.String); return sproc.ExecuteTypedList<T>();