Example #1
0
 public static void Configuration(ConfigurationResolver <Genre> config)
 {
     BeforeConfig();
     BeforeConfig(config);
     config.SetPropertyAttribute(s => s.GenreId, new PrimaryKeyAttribute());
     config.SetPropertyAttribute(s => s.Season, new ForeignKeyAttribute(referenceKey: "IdGenre", foreignKey: "GenreId"));
     AfterConfig(config);
     AfterConfig();
 }
Example #2
0
 public static void Configuration(ConfigurationResolver <AppRole> config)
 {
     BeforeConfig();
     BeforeConfig(config);
     config.SetPropertyAttribute(s => s.AppRoleId, new PrimaryKeyAttribute());
     config.SetPropertyAttribute(s => s.AppUser, new ForeignKeyAttribute(referenceKey: "IdRole", foreignKey: "AppRoleId"));
     AfterConfig(config);
     AfterConfig();
 }
Example #3
0
		public static void ConfigUsers(ConfigurationResolver<Users> config)
		{
			Users.BeforeConfig();
			Users.BeforeConfig(config);
			config.SetFactory(Users.Factory, true);
			config.SetPropertyAttribute(s => s.UserID, new ForModelAttribute("User_ID"));
			config.SetPropertyAttribute(s => s.UserID, new PrimaryKeyAttribute());
			Users.AfterConfig();
			Users.AfterConfig(config);
		}
Example #4
0
 public static void ConfigUsers(ConfigurationResolver <Users> config)
 {
     BeforeConfig();
     BeforeConfig(config);
     config.SetFactory(Factory, true);
     config.SetPropertyAttribute(s => s.UserID, new ForModelAttribute("User_ID"));
     config.SetPropertyAttribute(s => s.UserID, new PrimaryKeyAttribute());
     AfterConfig();
     AfterConfig(config);
 }
 public static void Configuration(ConfigurationResolver <Users> config)
 {
     BeforeConfig();
     BeforeConfig(config);
     config.SetPropertyAttribute(s => s.UserId, new PrimaryKeyAttribute());
     config.SetPropertyAttribute(s => s.IdAccount, new ForeignKeyDeclarationAttribute(foreignKey: "AppUserId", foreignTable: typeof(AppUser)));
     config.SetPropertyAttribute(s => s.AppUser, new ForeignKeyAttribute(foreignKey: "IdAccount", referenceKey: "AppUserId"));
     config.SetPropertyAttribute(s => s.Playback, new ForeignKeyAttribute(referenceKey: "IdUser", foreignKey: "UserId"));
     AfterConfig(config);
     AfterConfig();
 }
 public static void Configuration(ConfigurationResolver <Season> config)
 {
     BeforeConfig();
     BeforeConfig(config);
     config.SetPropertyAttribute(s => s.SeasonId, new PrimaryKeyAttribute());
     config.SetPropertyAttribute(s => s.IdGenre, new ForeignKeyDeclarationAttribute(foreignKey: "GenreId", foreignTable: typeof(Genre)));
     config.SetPropertyAttribute(s => s.Genre, new ForeignKeyAttribute(foreignKey: "IdGenre", referenceKey: "GenreId"));
     config.SetPropertyAttribute(s => s.Title, new ForeignKeyAttribute(referenceKey: "IdSeason", foreignKey: "SeasonId"));
     AfterConfig(config);
     AfterConfig();
 }
 public static void Configuration(ConfigurationResolver <Title> config)
 {
     BeforeConfig();
     BeforeConfig(config);
     config.SetPropertyAttribute(s => s.TitleId, new PrimaryKeyAttribute());
     config.SetPropertyAttribute(s => s.IdSeason, new ForeignKeyDeclarationAttribute(foreignKey: "SeasonId", foreignTable: typeof(Season)));
     config.SetPropertyAttribute(s => s.Season, new ForeignKeyAttribute(foreignKey: "IdSeason", referenceKey: "SeasonId"));
     config.SetPropertyAttribute(s => s.Playback, new ForeignKeyAttribute(referenceKey: "IdTitle", foreignKey: "TitleId"));
     AfterConfig(config);
     AfterConfig();
 }
 public static void Configuration(ConfigurationResolver <Playback> config)
 {
     BeforeConfig();
     BeforeConfig(config);
     config.SetPropertyAttribute(s => s.PlaybackId, new PrimaryKeyAttribute());
     config.SetPropertyAttribute(s => s.IdTitle, new ForeignKeyDeclarationAttribute(foreignKey: "TitleId", foreignTable: typeof(Title)));
     config.SetPropertyAttribute(s => s.IdUser, new ForeignKeyDeclarationAttribute(foreignKey: "UserId", foreignTable: typeof(Users)));
     config.SetPropertyAttribute(s => s.Title, new ForeignKeyAttribute(foreignKey: "IdTitle", referenceKey: "TitleId"));
     config.SetPropertyAttribute(s => s.Users, new ForeignKeyAttribute(foreignKey: "IdUser", referenceKey: "UserId"));
     AfterConfig(config);
     AfterConfig();
 }
Example #9
0
 public static void Configurate(ConfigurationResolver <Any> resolver)
 {
     resolver.SetPropertyAttribute(f => f.PropertyBag, new LoadNotImplimentedDynamicAttribute());
 }