示例#1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        /// <param name="directory">This is relative path to plugin's directory (for example \plugins)</param>
        /// <param name="extension">Plugin file's exstension mask (for example *.dll)</param>
        public PluginProvider(string directory, string extension)
        {
            this.PluginDirectory = Path.Combine(Path.GetDirectoryName(Application.ExecutablePath), directory);
            this.PluginExtension = extension;
            this.Plugins         = new Dictionary <string, T>();

            SqlModel m = new SqlModel("my_conn_str", "select * from products where name = @type");

            string[] typesArray = m.Add("@type", SqlDbType.NVarChar, "Type1").Fill <string>(0);
        }
        private TagCommandReceiver()
        {
            sql = new SqlModel("tr.TagCommandReceiver");

            sql.Add("@TagStatus", System.Data.SqlDbType.Int);
            sql.Add("@PlanningDate", System.Data.SqlDbType.DateTime);
            sql.Add("@Comment", System.Data.SqlDbType.NVarChar);
            sql.Add("@Effort", System.Data.SqlDbType.Int);
            sql.Add("@Efficacy", System.Data.SqlDbType.Int);
            sql.Add("@Priority", System.Data.SqlDbType.Int);
            sql.Add("@AssignationId", System.Data.SqlDbType.Int);
            sql.Add("@AssigrationType", System.Data.SqlDbType.Int);
        }
        private TagCommandReceiver()
        {
            sql = new SqlModel("tr.TagCommandReceiver");

            sql.Add("@TagStatus", System.Data.SqlDbType.Int);
            sql.Add("@PlanningDate", System.Data.SqlDbType.DateTime);
            sql.Add("@Comment", System.Data.SqlDbType.NVarChar);
            sql.Add("@Effort", System.Data.SqlDbType.Int);
            sql.Add("@Efficacy", System.Data.SqlDbType.Int);
            sql.Add("@Priority", System.Data.SqlDbType.Int);
            sql.Add("@AssignationId", System.Data.SqlDbType.Int);
            sql.Add("@AssigrationType", System.Data.SqlDbType.Int);
        }