code_junkie

Help with a Castle Active Record DeleteAll HQL String

Nov 14th, 2011
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public static void Delete(string pAppIdentifier) {
  2. DeleteAll(new EqExpression("AppIdentifier", pAppIdentifier));
  3. }
  4.  
  5. DeleteAll(string.Format("AppIdentifier='{0}'", pAppIdentifier))
  6.  
  7. session.Delete(string.Format("from {0} where {1}", type.Name, where));
Add Comment
Please, Sign In to add comment