/// <summary>
        /// Opens the specified connection string name.
        /// </summary>
        /// <param name="connectionStringName">Name of the connection string.</param>
        /// <returns></returns>
        public static DynamicModel Open(string connectionStringName)
        {
            dynamic dm = new DynamicModel(connectionStringName);

            return(dm);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseRepository&lt;T&gt;"/> class.
 /// </summary>
 /// <param name="tableName">Name of the table.</param>
 /// <param name="primaryKeyField">The primary key field for the table.</param>
 public BaseRepository(string tableName, string primaryKeyField = "")
 {
     Model = new DynamicModel(tableName, primaryKeyField);
 }