1
public bool AddArchitecture(DataSet Architecture)
    {
        base.SQL = "sp_InsertArchitecture";
        base.InitializeCommand();
        base.AddParameter("@Architecture_ID",
            SqlDbType.UniqueIdentifier, 16,
            Architecture.Tables.Add("Architecture").Rows.Add("Architecture_ID"));
        base.AddParameter("@Architecture_Name",
            SqlDbType.VarChar, 25,
            Architecture.Tables.Add("Architecture").Rows.Add("Architecture_Name"));
        base.AddParameter("@Architecture_Description",
            SqlDbType.VarChar, 25,
            Architecture.Tables.Add("Architecture").Rows.Add("Architecture_Description"));
        base.AddParameter("@Architecture_Date_Added",
            SqlDbType.DateTime, 8,
            Architecture.Tables.Add("Architecture").Rows.Add("Architecture_Date_Added"));

        **AddArchitecture** = ExecuteStoredProcedure; This is where I get the error.
    }
4

1 回答 1

7

您是 VB 程序员,第一次使用 C#,对吧?

你想要

return ExecuteStoredProcedure();

反而。

于 2012-05-18T14:31:16.257 回答