Exemplo n.º 1
0
 internal static void CreateEmail(string email)
 {
     using (SqlConnection con = DbUtilsDal.OpenConnection(DbUtilsDal.MainDB))
     {
         DbUtilsDal.ExecuteNonQuery(con, "dbo.CreateEmail",
                                    new string[] { "@Email" },
                                    new SqlDbType[] { SqlDbType.VarChar },
                                    new object[] { email });
     }
 }
Exemplo n.º 2
0
        internal static EmailRow GetEmail(string email)
        {
            DataRow row = null;

            using (SqlConnection con = DbUtilsDal.OpenConnection(DbUtilsDal.MainDB))
            {
                DbUtilsDal.ExecuteNonQuery(con, "dbo.GetEmail",
                                           new string[] { "@Email" },
                                           new SqlDbType[] { SqlDbType.VarChar },
                                           new object[] { email });
            }
            return(new EmailRow(row));
        }