Ejemplo n.º 1
0
 /// <summary>
 /// Fills the database.
 /// </summary>
 /// <param name="values">The values.</param>
 /// <param name="dataSource">The database.</param>
 public void FillSource(List <dynamic> values, ISource dataSource)
 {
     if (dataSource is null)
     {
         throw new ArgumentNullException(nameof(dataSource));
     }
     if (values?.Any() != true)
     {
         return;
     }
     for (int i = 0, valuesCount = values.Count; i < valuesCount; i++)
     {
         dynamic Item = values[i];
         dataSource.AddFunction(Item.NAME, Item.SCHEMA, Item.DEFINITION);
     }
 }