Inheritance: System.Data.Objects.DataClasses.EntityObject
 /// <summary>
 /// Deprecated Method for adding a new object to the StudyDataDatas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToStudyDataDatas(StudyDataData studyDataData)
 {
     base.AddObject("StudyDataDatas", studyDataData);
 }
Example #2
0
 public static void LoadDataFromDto(ref StudyDataData data,
                                    StudyDataDto dto,
                                    LearnLanguagesContext context)
 {
   data.NativeLanguageText = dto.NativeLanguageText;
   data.Username = dto.Username;
 }
 /// <summary>
 /// Create a new StudyDataData object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="nativeLanguageText">Initial value of the NativeLanguageText property.</param>
 /// <param name="username">Initial value of the Username property.</param>
 public static StudyDataData CreateStudyDataData(global::System.Guid id, global::System.String nativeLanguageText, global::System.String username)
 {
     StudyDataData studyDataData = new StudyDataData();
     studyDataData.Id = id;
     studyDataData.NativeLanguageText = nativeLanguageText;
     studyDataData.Username = username;
     return studyDataData;
 }
Example #4
0
    public static StudyDataDto ToDto(StudyDataData data)
    {
      var dto = new StudyDataDto()
      {
        Id = data.Id,
        NativeLanguageText = data.NativeLanguageText,
        Username = data.Username
      };

      return dto;
    }