代码之家  ›  专栏  ›  技术社区  ›  Andreas

带SimpleRepository的存储过程

  •  0
  • Andreas  · 技术社区  · 16 年前

    我用的是亚音速3。

    谢谢。

    1 回复  |  直到 16 年前
        1
  •  1
  •   Andreas    15 年前

            StoredProcedure sproc = new StoredProcedure("SprocName", ProviderFactory.GetProvider(ConnectionStringName));
    
            string input= "input text";
            sproc.Command.AddParameter("input", input, DbType.String);
    
            return sproc.ExecuteTypedList<T>();
    
    推荐文章