private ServiceProviderDTO Map(tblServiceProvider s)
 {
     if (s == null) return null;
     return new ServiceProviderDTO()
                {
                    Code = s.Code,
                    IdNo = s.IDNo,
                    Name = s.Name,
                    AccountName = s.AccountName,
                    AccountNumber = s.AccountNumber,
                    GenderId = s.Gender.HasValue ? s.Gender.Value : 0,
                    BankBranchId = s.BankBranchId.HasValue ? s.BankBranchId.Value : Guid.Empty,
                    BankId = s.BankId.HasValue ? s.BankId.Value : Guid.Empty,
                    Description = s.Description,
                    PinNo = s.PIN,
                    MobileNumber = s.Mobile,
                    StatusId = s.IM_Status,
                    DateCreated = s.IM_DateCreated,
                    DateLastUpdated = s.IM_DateLastUpdated,
                    MasterId = s.id
                };
 }
示例#2
0
 /// <summary>
 /// Create a new tblServiceProvider object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="iDNo">Initial value of the IDNo property.</param>
 /// <param name="mobile">Initial value of the Mobile property.</param>
 /// <param name="iM_DateCreated">Initial value of the IM_DateCreated property.</param>
 /// <param name="iM_DateLastUpdated">Initial value of the IM_DateLastUpdated property.</param>
 /// <param name="iM_Status">Initial value of the IM_Status property.</param>
 public static tblServiceProvider CreatetblServiceProvider(global::System.Guid id, global::System.String name, global::System.String iDNo, global::System.String mobile, global::System.DateTime iM_DateCreated, global::System.DateTime iM_DateLastUpdated, global::System.Int32 iM_Status)
 {
     tblServiceProvider tblServiceProvider = new tblServiceProvider();
     tblServiceProvider.id = id;
     tblServiceProvider.Name = name;
     tblServiceProvider.IDNo = iDNo;
     tblServiceProvider.Mobile = mobile;
     tblServiceProvider.IM_DateCreated = iM_DateCreated;
     tblServiceProvider.IM_DateLastUpdated = iM_DateLastUpdated;
     tblServiceProvider.IM_Status = iM_Status;
     return tblServiceProvider;
 }
示例#3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the tblServiceProvider EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTotblServiceProvider(tblServiceProvider tblServiceProvider)
 {
     base.AddObject("tblServiceProvider", tblServiceProvider);
 }