コード例 #1
0
 public int insertRecord(string FName, string EmailId, string PhoneNumb, string Address, string CuntryCode, string commnts)
 {
     using (var cont = new ROPAEntities())
     {
         var obj = new FeedBackForm{
             FirstName = FName,
             EmailId = EmailId,
             PhoneNumber = PhoneNumb,
             Addres = Address,
             countrycode = CuntryCode,
             Commments = commnts,
             insertDate = DateTime.Now
         };
         cont.AddToFeedBackForms(obj);
         int result = cont.SaveChanges();
         return result;
     }
 }
コード例 #2
0
 public int insertRecord(string FName, string EmailId, string PhoneNumb, string Address, string CuntryCode, string commnts)
 {
     int result = 0;
     using (ROPAEntities cont = new ROPAEntities())
     {
         FeedBackForm obj = new FeedBackForm();
         obj.FirstName = FName;
         obj.EmailId = EmailId;
         obj.PhoneNumber = PhoneNumb;
         obj.Addres = Address;
         obj.countrycode = CuntryCode;
         obj.Commments = commnts;
         obj.insertDate = DateTime.Now;
         cont.AddToFeedBackForms(obj);
         result = cont.SaveChanges();
         return result;
     }
 }
コード例 #3
0
ファイル: ROPA.Designer.cs プロジェクト: vanisandeep/yogyata
 /// <summary>
 /// Create a new FeedBackForm object.
 /// </summary>
 /// <param name="feedBackId">Initial value of the FeedBackId property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="emailId">Initial value of the EmailId property.</param>
 /// <param name="phoneNumber">Initial value of the PhoneNumber property.</param>
 /// <param name="addres">Initial value of the Addres property.</param>
 /// <param name="commments">Initial value of the Commments property.</param>
 /// <param name="insertDate">Initial value of the insertDate property.</param>
 /// <param name="countrycode">Initial value of the countrycode property.</param>
 public static FeedBackForm CreateFeedBackForm(global::System.Int32 feedBackId, global::System.String firstName, global::System.String emailId, global::System.String phoneNumber, global::System.String addres, global::System.String commments, global::System.DateTime insertDate, global::System.String countrycode)
 {
     FeedBackForm feedBackForm = new FeedBackForm();
     feedBackForm.FeedBackId = feedBackId;
     feedBackForm.FirstName = firstName;
     feedBackForm.EmailId = emailId;
     feedBackForm.PhoneNumber = phoneNumber;
     feedBackForm.Addres = addres;
     feedBackForm.Commments = commments;
     feedBackForm.insertDate = insertDate;
     feedBackForm.countrycode = countrycode;
     return feedBackForm;
 }
コード例 #4
0
ファイル: ROPA.Designer.cs プロジェクト: vanisandeep/yogyata
 /// <summary>
 /// Deprecated Method for adding a new object to the FeedBackForms EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToFeedBackForms(FeedBackForm feedBackForm)
 {
     base.AddObject("FeedBackForms", feedBackForm);
 }