/// <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); }
/// <summary> /// Initializes a new instance of the <see cref="BaseRepository<T>"/> 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); }