Exemple #1
0
 public virtual int Count()
 {
     this.SelectStr = String.Format("SELECT COUNT(*) FROM {0}", DataMapper.EscapeName(Mapping.TableName));
     return(Convert.ToInt32(DataMapper.SelectScalar(SessionFactory.GetCurrentSession(typeof(T)), this)));
 }
Exemple #2
0
 public virtual int ExecuteNonQuery()
 {
     return(DataMapper.NonQuery(SessionFactory.GetCurrentSession(typeof(T)), this));
 }