无法分配给方法组

时间:2012-05-18 14:29:49

标签: c# methods ado.net

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.
    }

1 个答案:

答案 0 :(得分:7)

你是VB程序员,第一次使用C#,对吗?

认为你想要

return ExecuteStoredProcedure();

代替。