/// <summary>
 /// Deprecated Method for adding a new object to the Sponsors EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToSponsors(Sponsor sponsor)
 {
     base.AddObject("Sponsors", sponsor);
 }
Example #2
0
        static void CreateSampleSponsors(ThripEntities dataContext)
        {
            var _conference = dataContext.Conferences.SingleOrDefault(c => c.Name == "MVC Springboard");
            var _sponsor = new Sponsor();

            _sponsor.Id = Guid.NewGuid();
            _sponsor.Name = "DevExpress";
            _sponsor.Description = "DevExpress engineers the most advanced IDE tools and feature-complete visual components to supercharge your .NET development, as well as application frameworks to tie everything together. Our technologies help you build your best, see complex software with clarity, increase your productivity and create stunning .NET applications in the shortest possible time. All of our products come with a 60 day unconditional money back guarantee and fully functional evaluation versions are available for download at www.devexpress.com.";
            _sponsor.URL = "DevExpress.com";
            _sponsor.Conferences.Add(_conference);

            dataContext.Sponsors.AddObject(_sponsor);

            _sponsor = new Sponsor();

            _sponsor.Id = Guid.NewGuid();
            _sponsor.Name = "Telerik";
            _sponsor.Description = "Telerik is the leading vendor of User Interface (UI) components for ASP.NET and Windows Forms, and .NET Reporting solutions. Building on our expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Check out the latest release featuring our RadControls for ASP.NET, ASP.NET AJAX controls, Silverlight tools, RadControls for WinForms, and Telerik Reporting: Telerik.com";
            _sponsor.URL = "Telerik.com";
            _sponsor.Conferences.Add(_conference);

            dataContext.Sponsors.AddObject(_sponsor);
        }
 /// <summary>
 /// Create a new Sponsor object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 public static Sponsor CreateSponsor(global::System.Guid id, global::System.String name)
 {
     Sponsor sponsor = new Sponsor();
     sponsor.Id = id;
     sponsor.Name = name;
     return sponsor;
 }