public void add_sample_data(ChinookDbContext db) { var digital_download = new media_type() { Name = "Digital Download" }; var rock_genre = new genre() { Name = "Rock" }; var new_artist = new artist() { Name = "Bob Sacamano" }; var new_album = new album() { Title = "My stuff 2018", Artist = new_artist }; var new_track = new track() { Name = "Bad Medicine", Album = new_album, Genre = rock_genre, MediaType = digital_download }; var new_playlist = new playlist() { PlaylistId = 0, Name = "Test playlist" }; var ref_playlist_track = new playlist_track() { playlist = new_playlist, track = new_track }; new_playlist.tracks.Add(ref_playlist_track); db.playlist_tracks.Add(ref_playlist_track); db.SaveChanges(); }
public audit_record(string name, media_type type) { m_next = null; m_type = type; m_status = audit_status.STATUS_ERROR; m_substatus = audit_substatus.SUBSTATUS_ERROR; m_name = name; m_explength = 0; m_length = 0; m_shared_device = null; }
private void Add_Click(object sender, RoutedEventArgs e) { using (var db = new ChinookDbContext()) { var dvd_media_type = new media_type { Name = NewMediaType.Text }; db.media_types.Add(dvd_media_type); db.SaveChanges(); MediaTypes.ItemsSource = db.media_types.ToList(); } }
public audit_record(string name, media_type type) { m_next = null; m_type = type; m_status = audit_status.UNVERIFIED; m_substatus = audit_substatus.UNVERIFIED; m_name = name; m_explength = 0; m_length = 0; m_exphashes = new util.hash_collection(); m_hashes = new util.hash_collection(); m_shared_device = null; }
device_type m_shared_device; /* device that shares the rom */ //std::add_pointer_t<device_type> m_shared_device; // device that shares the ROM // construction/destruction //------------------------------------------------- // audit_record - constructor //------------------------------------------------- public audit_record(Pointer <rom_entry> media, media_type type) { m_next = null; m_type = type; m_status = audit_status.UNVERIFIED; m_substatus = audit_substatus.UNVERIFIED; m_name = media.op.name(); m_explength = rom_file_size(media); m_length = 0; m_exphashes = new util.hash_collection(media.op.hashdata()); m_hashes = new util.hash_collection(); m_shared_device = null; }
device_t m_shared_device; /* device that shares the rom */ // construction/destruction //------------------------------------------------- // audit_record - constructor //------------------------------------------------- public audit_record(ListPointer <rom_entry> media, media_type type) { m_next = null; m_type = type; m_status = audit_status.STATUS_ERROR; m_substatus = audit_substatus.SUBSTATUS_ERROR; m_name = romload_global.ROM_GETNAME(media[0]); m_explength = romload_global.rom_file_size(media); m_length = 0; m_shared_device = null; m_exphashes.from_internal_string(romload_global.ROM_GETHASHDATA(media[0])); }
public conference() { this.typeField = media_type.audio; this.max_partiesField = "9"; this.reserveField = "0"; this.captionField = boolean_type.yes; this.caption_durationField = "20s"; this.beepField = boolean_type.yes; this.clamp_dtmfField = boolean_type.yes; this.auto_gain_controlField = boolean_type.yes; this.echo_cancellationField = boolean_type.yes; }
public media_query(media_query val) { _not = val._not; _expressions = val._expressions; _media_type = val._media_type; }
public media_query() { _expressions = new List <media_query_expression>(); _media_type = media_type.all; _not = false; }
public call() { this.signalingField = boolean_type.yes; this.mediaField = media_type.audio; this.cpaField = boolean_type.no; this.dtmf_modeField = dtmf_mode_option.rfc2833; }