public virtual bool Save(SoftFluent.Samples.SignalR.Customer customer) { SoftFluent.Samples.SignalR.Customer customer1 = customer; if ((customer1 == null)) { return CodeFluentPersistence.DefaultBooleanValue; } return customer1.Save(); }
public virtual string Validate(SoftFluent.Samples.SignalR.Customer customer, string culture) { System.Globalization.CultureInfo cultureInfo = ConvertUtilities.ToCultureInfo(culture); SoftFluent.Samples.SignalR.Customer customer1 = customer; if ((customer1 == null)) { return default(string); } return customer1.Validate(cultureInfo); }
public virtual bool SaveByRef(ref SoftFluent.Samples.SignalR.Customer customer) { SoftFluent.Samples.SignalR.Customer customer1 = customer; if ((customer1 == null)) { return CodeFluentPersistence.DefaultBooleanValue; } bool ret = customer1.Save(); customer = customer1; return ret; }
private static string[] GetRoles(SoftFluent.Samples.GED.Web.Security.Identity identity) { if (identity == null) return new string[0]; string[] roles = new string[identity.User.Roles.Count]; for(int i = 0; i < identity.User.Roles.Count; i++) { roles[i] = identity.User.Roles[i].Role.Name; } return roles; }
public virtual void SaveAll(SoftFluent.Samples.SignalR.CustomerCollection customerCollection) { SoftFluent.Samples.SignalR.CustomerCollection customerCollection1 = customerCollection; customerCollection1.SaveAll(); }
public Principal(SoftFluent.Samples.GED.Web.Security.Identity identity) :base(identity, GetRoles(identity)) { if (identity == null) throw new ArgumentNullException("identity"); }