Esempio n. 1
0
    public bool SaveBronBestand(int gegevensetId, string naam)
    {
        ///NOTE: caller must anticipate exception.
        var bronBestand = new DataResource.LinQToSqlServer.BronBestand();
        bronBestand.BestandsNaam = naam;
        bronBestand.GegevensSetId = gegevensetId;
        bronBestand.AanleverDatum = DateTime.Now;

        using (DataClasses1DataContext context = new DataClasses1DataContext())
        {
            context.BronBestands.InsertOnSubmit(bronBestand);
            context.SubmitChanges();
        }
        return true;
    }
 partial void DeleteBronBestand(BronBestand instance);
 partial void InsertBronBestand(BronBestand instance);
 partial void UpdateBronBestand(BronBestand instance);
		private void detach_BronBestands(BronBestand entity)
		{
			this.SendPropertyChanging();
			entity.GegevensSet = null;
		}