partial void Deletedevice_endpoints_t(device_endpoints_t instance);
partial void Updatedevice_endpoints_t(device_endpoints_t instance);
partial void Insertdevice_endpoints_t(device_endpoints_t instance);
private void detach_device_endpoints_ts(device_endpoints_t entity) { this.SendPropertyChanging(); entity.tables_t = null; }
private void attach_device_endpoints_ts(device_endpoints_t entity) { this.SendPropertyChanging(); entity.devices_t = this; }
public void InsertNewEndPoint(int deviceId, int index) { var db = new dbDataContext(); lock (db) { Table<device_endpoints_t> deviceEndpointsTs = db.GetTable<device_endpoints_t>(); var endpoint = new device_endpoints_t { device_id = deviceId, endpoint_index = index // playstation_id = playstationId }; deviceEndpointsTs.InsertOnSubmit(endpoint); db.SubmitChanges(); } }