Пример #1
0
        internal void Populate(TDatabaseAuthentication data)
        {
            if (data != null)
            {
                if (data.Authentication.Equals(DatabaseAuthentication.Authentication))
                {
                    DatabaseAuthentication.CopyFrom(data);

                    DatabaseConnection1 = $"Data Server = {data.DatabaseServer};  Initial Catalog = {data.DatabaseName}";
                }

                IsCheckedAuthentication = DatabaseAuthentication.IsActive;
            }
        }
Пример #2
0
        internal void Populate(TDatabaseAuthentication data)
        {
            if (data.NotNull())
            {
                if (data.Authentication.Equals(DatabaseAuthentication.Authentication))
                {
                    DatabaseAuthentication.CopyFrom(data);

                    DatabaseConnection1 = $"Data Server = {data.DatabaseServer};  Initial Catalog = {data.DatabaseName}";
                    DatabaseConnection2 = $"User Id = {data.UserId};  Password = {data.UserPassword}";
                }

                IsCheckedAuthentication = DatabaseAuthentication.IsActive;
            }
        }
Пример #3
0
 public void Select (TDatabaseAuthentication database)
 {
   DatabaseAuthentication.CopyFrom (database);
 }