public EntityManager(ISQLExecutor exe, IMappingSQLEmit emit) { exe.ThrowIfNullArgument(nameof(exe)); emit.ThrowIfNullArgument(nameof(emit)); _exe = exe; _emit = emit; }
public EntityQuery(ISQLExecutor exe, IQuerySQLEmit emit) { exe.ThrowIfNullArgument(nameof(exe)); emit.ThrowIfNullArgument(nameof(emit)); _exe = exe; _emit = emit; }
public EntityQuery(ISQLExecutor exe, IQuerySQLEmit emit) { exe.ThrowIfNullArgument(nameof(exe)); emit.ThrowIfNullArgument(nameof(emit)); _exe = exe; _emit = emit; }
internal Database(ISQLExecutor exe, IModelSQLEmit emit, IMetaQuery meta) { exe.ThrowIfNullArgument(nameof(exe)); emit.ThrowIfNullArgument(nameof(emit)); meta.ThrowIfNullArgument(nameof(meta)); _exe = exe; _emit = emit; _meta = meta; }
internal SimpleSession(ISQLExecutor exe, IEntityManager mgr, IEntityQuery qry, INativeSQL native) { exe.ThrowIfNullArgument(nameof(exe)); mgr.ThrowIfNullArgument(nameof(mgr)); qry.ThrowIfNullArgument(nameof(qry)); native.ThrowIfNullArgument(nameof(native)); _exe = exe; _mgr = mgr; _qry = qry; _native = native; }
private void SetConnect(IDBConnect connect, ISQLExecutor sqlExecutor) { if (_exec == null) { _exec = sqlExecutor; } LinkedDBConnect = connect; lblConnect.Text = connect.Title; lblAccount.Text = connect.Account; lblElapsed.Text = ""; btnStop.Enabled = false; }
public SQLResult CreateSQLResult(int id, IDBConnect connect, ISQLExecutor sqlExecutor) { if (_bind.ContainsKey(id)) { throw new ApplicationException("id(" + id + ") already exists"); } var ret = _bind[id] = new SQLResult(connect, sqlExecutor) { Visible = false }; //Visible = false to prevent Flicker return(ret); }
protected StandardRepository(TypeLookup typeLookup, SQLConstants sqlConstants, EntityUtils entityUtils, ExpressionUtils expressionUtils, ISQLExecutor <TCommand, TConnection, TParameter> sqlExecutor, List <string> updateableFields = null) { _typeLookup = typeLookup; _sqlConstants = sqlConstants; _entityUtils = entityUtils; _expressionUtils = expressionUtils; SQLExecutor = sqlExecutor; UpdateableFields = updateableFields; var entityType = typeof(T); Fields = _entityUtils.GetProperties(entityType); BaseFields = _entityUtils.GetBaseProperties(); }
private Control AddSQLResult(int bufID, IDBConnect connect, ISQLExecutor sqlExecutor) { var ctr = SQLResultManager.Instance.CreateSQLResult(bufID, connect, sqlExecutor); ctr.Height = _defaultSQLResultHeight; ctr.Visible = false;//prevent Flicker var ret = Win32.SetParent(ctr.Handle, nppData._nppHandle); if (ret == null || ret == IntPtr.Zero) { System.Windows.Forms.MessageBox.Show("setparent fail"); } if (hSplitBar == null) { hSplitBar = CreateSplitBar(); } return(ctr); }
public MetaQuery(ISQLExecutor exe) { exe.ThrowIfNullArgument(nameof(exe)); _exe = exe; }
public IMetaQuery CreateMetaQuery(ISQLExecutor exe) { return(new MetaQuery(exe)); }
public IMetaQuery CreateMetaQuery(ISQLExecutor exe) { return new MetaQuery(exe); }
public NativeSQL(ISQLExecutor exe) { exe.ThrowIfNullArgument(nameof(exe)); _exe = exe; }
public MetaQuery(ISQLExecutor exe) { exe.ThrowIfNullArgument(nameof(exe)); _exe = exe; }
public NativeSQL(ISQLExecutor exe) { exe.ThrowIfNullArgument(nameof(exe)); _exe = exe; }
public SQLResult(IDBConnect connect, ISQLExecutor sqlExecutor) { InitializeComponent(); Init(); SetConnect(connect, sqlExecutor); }