public DataUsers(DataModelColumnProperties <int> columnUserIDProperties,
                  DataModelColumnProperties <string> columnFirstNameProperties, string firstName,
                  DataModelColumnProperties <string> columnLastNameProperties, string lastName,
                  DataModeForeignKey fkCountry, DataCountries country)
 {
     Init(columnUserIDProperties, columnFirstNameProperties, columnLastNameProperties, fkCountry);
     ColumnFirstName.ColumnValue = firstName;
     ColumnLastName.ColumnValue  = lastName;
     FKCountry = fkCountry;
     Country   = country;
 }
        public DataUsers GenerateDataModel(string firstName, string lastName, DataCountries country)
        {
            var result = new DataUsers(ColumnPropertiesUserID,
                                       ColumnPropertiesFirstName, firstName,
                                       ColumnPropertiesLastName, lastName,
                                       FKCountryProperties, country);

            // DataModels.Add(result);

            return(result);
        }
Exemplo n.º 3
0
 public bool Insert_User(string firstName, string lastName, DataCountries country)
 {
     return(_dba.ExecuteCommands_Insert(_dataUsersFactory, _dataUsersFactory.GenerateDataModel(firstName, lastName, country)));
 }