PhotoEntity.Controllers.Manager.RemoveDatabase C# (CSharp) Method

RemoveDatabase() public method

public RemoveDatabase ( ) : bool
return bool
        public bool RemoveDatabase()
        {
            try
            {
                return ds.Database.Delete();
            }
            catch (Exception)
            {
                return false;
            }
        }

Usage Example

コード例 #1
0
 public ActionResult RemoveDatabase()
 {
     if (m.RemoveDatabase())
     {
         return(Content("database has been removed"));
     }
     else
     {
         return(Content("could not remove database"));
     }
 }