public static void BuildingTextTitle(ref Label myTitle, string type, string userID, string category, string area, string code) { myTitle.Text = TitleContext.Content(type, userID, category, area, code); if (myTitle.Text.Length == 0) { myTitle.Visible = false; } }
public override SequenceDiagramViewModel VisitTitle([NotNull] TitleContext context) { string title = GetMessage(context.message()); // Update title (last instance wins) SequenceDiagram.Title = title; return(SequenceDiagram); }
private static void BuildTitleService() { var optionsBuilder = new DbContextOptionsBuilder <TitleContext>(); optionsBuilder.UseSqlServer(_config["WtowConnectionString"]); var context = new TitleContext(optionsBuilder.Options); _titleService = new TitleService(context); }
static void Main(string[] args) { DbContextOptionsBuilder <TitleContext> optionsBuilder = new DbContextOptionsBuilder <TitleContext>(); optionsBuilder.UseSqlServer(@"Server=titles-db;Database=Titles;User=sa;Password=Your_password123"); using (TitleContext context = new TitleContext(optionsBuilder.Options)) { context.Database.Migrate(); } }
public string GetTitleContent(string operation, string userId, string categoryId, string areaId, string itemCode) { try { return(TitleContext.Content(operation, userId, categoryId, areaId, itemCode)); } catch (Exception ex) { var em = ex.Message; return(""); } }
public static void BuildingTitleTab(ref HtmlGenericControl myDIV, string userID, string category, string area, string code) { myDIV.InnerHtml = ""; string title = TitleContext.Content("Title", userID, category, area, code); // AppraisalProcess.AppraisalPageTitle("0", category,area,code,role); HtmlGenericControl span = new HtmlGenericControl("span"); span.ID = "title_" + code; span.Attributes.Add("class", "pageTitle"); span.InnerText = title; span.Attributes.Add("title", category + "-" + area + "-" + code); myDIV.Controls.Add(span); HtmlImage img = new HtmlImage(); img.ID = "img_" + code; img.Src = "../images/help2.png"; img.Attributes.Add("class", "helpImg"); myDIV.Controls.Add(img); }
public override ITextArea[] VisitTitle([NotNull] TitleContext context) { var lineContext = context.lineNormal(); if (lineContext != null) { return(VisitLineNormal(lineContext)); } var lineStarContext = context.lineStar(); if (lineStarContext != null) { return(VisitLineStar(lineStarContext)); } return(new ITextArea[] { new TextArea(context.GetText(), new Scope { LineStart = context.Start.Line + 1, LineEnd = context.Stop.Line }) }); }
// This function will get triggered/executed when a new message is written // on an Azure Queue called queue. // public static async Task ProcessQueueMessage([TimerTrigger("0 */10 * * * *")]TimerInfo timer) public static async void ProcessQueueMessage([TimerTrigger("0 0 12 1/3 * *")] TimerInfo timer) { var issueCommandRepository = new IssueCommandRepository(); var issueQueryRepository = new IssueQueryRepository(); var issueContext = new IssueContext(issueQueryRepository, issueCommandRepository); var issueFactory = new IssueFactory(issueContext); var titleCommandRepository = new TitleCommandRepository(); var titleQueryRepository = new TitleQueryRepository(); var titleContext = new TitleContext(titleQueryRepository, titleCommandRepository); var titleFactory = new TitleFactory(titleContext); var publisherQueryRepository = new PublisherQueryRepository(); var publisherContext = new PublisherContext(publisherQueryRepository); var publisherFactory = new PublisherFactory(publisherContext); var catalogContext = new CatalogContext(publisherFactory, titleFactory, issueFactory); var Catalog = new CatalogObject(catalogContext); await Catalog.Commands.NewReleases(0); var end = string.Empty; }
public TitleRepository(TitleContext titleContext) { this.titleContext = titleContext; this.titleContext.Database.EnsureCreated(); Table = titleContext.Set <T>(); }
public TodoApiEntityFramework(TitleContext titleContext) { this.titleContext = titleContext; }
public TitleRepository(TitleContext titleContext) { this._context = titleContext; }
public TitlesController(TitleContext titleContext) { _titleContext = titleContext; }
public TitlesController() { this.titleContext = new TitleContext(); }
public TitleService(TitleContext context) { _context = context; }
public TitleManager(TitleContext titleContext) { this._context = titleContext; }