Thursday, 26 February 2015

member names cannot be the same as their enclosing type C#

Example:

Public  Classs  LoginDetails
{
       public LoginDetails()
      {
               //           Constructor
      }
     
      Public Void LoginDetails(string Uname,string Pwd )
      {
           // User defined method
      }
     
 }

Note: It Gives An Error .

Your class Name is  LoginDetails so this method can't also be named LoginDetails . You will have to change the name of the LoginDetails method to something else to make this code compile.

Thursday, 5 February 2015

My Sql Generate DataBase Back Up Using C#.net

void GenerateScript()
{
    string constr = "server=localhost;user=root;pwd=root;database=myDataBase;";
    string file = "C:\\MyDumpFile.sql";
    MySqlBackup mb = new MySqlBackup(constr);
    mb.ExportInfo.FileName = file;
    mb.Export();
}

Friday, 23 January 2015

Tuesday, 20 January 2015

My Sql : Incorrect key file for Table

Check Database Server that you have enough disk space on it .if disks are full this error is displayed.
Now, which  folders you should look at it depends on your setup.

Monday, 12 January 2015

Linq To Objects Group bY Syntax

 FROM  selectVariable IN  dataSourceorList GROUPBY selectVariable.variable INTO RANGEVARIABLE Select new { };