Пример #1
0
        public static int PersonInsert(this TestDataDB dataConnection, string?firstName, string?middleName, string?lastName, char?gender)
        {
            var parameters = new []
            {
                new DataParameter("@FirstName", firstName, DataType.NText)
                {
                    Size = 50
                },
                new DataParameter("@MiddleName", middleName, DataType.NText)
                {
                    Size = 50
                },
                new DataParameter("@LastName", lastName, DataType.NText)
                {
                    Size = 50
                },
                new DataParameter("@Gender", gender, DataType.NText)
                {
                    Size = 1
                }
            };

            return(dataConnection.ExecuteProc("[Person_Insert]", parameters));
        }
Пример #2
0
 public static int AddIssue792Record(this TestDataDB dataConnection)
 {
     return(dataConnection.ExecuteProc("[AddIssue792Record]"));
 }