Total Microtheories:7385 TotalHits: 241812 Email Us | Add MT | Help Using the Site



BETTER IDEAS, BETTER SOLUTIONS


[Valid RSS] | RSS Feed

Most Recent Microtheory

(hits=5) My goal is to reduce the amount of linq required to access data in the database. One way to reduce the amount of linq code is use the eager loading class references produced by Entity Framework for a database table. An ScheduleEvent table has foreign keys for the Employee AddressBook and the Customer AddressBook records. The foreign keys relationship is used by EntityFramework to create a virtual EmployeeAddressBook and a virtual CustomerAddressBook. The Schedule Events are returned as an IQueryable type. This allows me to foreach the result of the query results. The Unit of Work repository ScheduleEventRepository uses eager loading to return the parent object of the entity framework schedulevent class: EmployeeAddressBook. The ScheduleEvent has a virtual reference to an Employee AddressBook and a Customer AddressBook. The EmployeeAddressBook and CustomerAddressBook are virtual meaning, they must be included to be loaded by the base class method GetObjectsAsync where I pass the lambda expression and the table name to Include for eager loading.[Learn More...]
(hits=10) This code snippet demonstrates the Parrallel.invoke and the Parrallel.foreach. Parallel.foreach partions the reading of a collection into sections giving each thread a section of the whole collection. The Parallel.foreach can be canceled by the user.[Learn More...]
(hits=8) The Repository Generic class receives the DbContext from the UnitOfWork Container class. The Repository Generic class provides the Create, Update, Delete, and Find methods for a Generic Class, in this case, AddressBook. The Repository Generic class can add a range of objects in a List or remove a range of objects in the list from the database of Type T.[Learn More...]
(hits=9) The DbContext is the Entity Framework table definitions and DBSet Collections. It also has the virtual ICollections for eager or lazy loading of the associated dependency tables defined by the foreign Key constraint. The CommitChanges method of the Unit of Work Saves the changes to the database context to the database.[Learn More...]
(hits=9) The repository pattern allows you to create custom linq methods like the one created call GetAddressBook. Try and use the Foreign Key associated include tables where possible. When using the eager or lazy loading tables are not possible then use linq.[Learn More...]
(hits=11) In short, I have demonstrate the Unit of Work repository pattern. The unit of Work should be aligned with the UML use cases that control the flow of business logic. The Unit of Work is a powerful way to accomplish complex tasks that can be compared to the business logic diagrams.[Learn More...]
(hits=12) In short, the trade pit must work on principles of equilibrium or it will get bigger. The bigger the pit, the harsher it is on those trying to survive and feed their families. The rising cost due to inflation is painful. Companies have access to cheap money, but production costs lessen profit margins. Companies insist that employees do more with less available workers. Wages do not adjust portionally with the increased cost of living. We pray for peace and hope that more sane economic principles will be restored. President Trump needs to think about his responses to bubbles in the stock market, real estate market, and bond market. Interest rates cannot remain low forever. The scales will swing back to more conservative principles, once again.[Learn More...]
(hits=10) What would happen if China sold USG bonds and bought hard commodities? Commodity prices would go up. China would stockpile the commodities in storage facilities. The inventory would represent a liability. Unless Chinese exports increased, storage of more commodity would be avoided, representing additional costs.[Learn More...]
(hits=11) President Trump sees that the low interest rates fostered by the Federal Reserve have coincided with the 227% growth in the stock market. The S&P is trade at 27 times earnings. Trump called the stock market a bubble and warned about the stock market collapsing if interest rates rose. China has decided not to dump U.S. government bonds in response to Trump's steel and aluminum tariffs. China could swap USG bonds for other assets U.S. dollar assets like real estate or gold. Should China decide to swap USG bonds for foreign currencies, the dollar would drop, and Chinese imports would decrease. U.S. exports would increase to foreign countries as products became cheaper. As exports increase, unemployment would decrease. The European and Japanese countries would not want China to buy up their currencies with money from USG bond sales.[Learn More...]
(hits=13) Interest rate derivatives have decreased in volume; however, they are four times the volume in 2000. This is a pit of epic portion.[Learn More...]
(hits=13) Commercial paper or loans to businesses for daily operations are affected adversely by the defaults in the Junk Bond Market. Junk bonds have high yields. In 2018, $36 billion in Junk Maturities came due; in 2019 that amount will grow to $104 billion, and by 2020, the amount will become $182 billion. Debt laden companies find it difficult to roll their bonds when principle comes due. The history of low interest rates has allowed companies to borrow excessive amounts of money through bonds to grow their businesses. Rolling a bond means buying another bond to pay for the principle payment due. The debt cascades and remains acceptable risk bets when interest rates remain low. However, inflation causes interest rates to rise causing the debt financing to become burdensome and eventually forcing default.[Learn More...]
(hits=14) Another pit is the junk bond market funded by pension investors seeking fix income growth. The Junk Bond Market has been investing in the stock market and Shale Oil. The growth and income have attracted Pension funds. However, the Junk Bond Market repeated experiences between 10 and 12 percent default every decade. Money will be gained and then money will be lost. Commercial paper or loans to businesses for daily operations are affected adversely by the defaults in the Junk Bond Market. Junk bonds have high yields. In 2018, $36 billion in Junk Maturities came due; in 2019 that amount will grow to $104 billion, and by 2020, the amount will become $182 billion. Debt laden companies find it difficult to roll their bonds when principle comes due. The history of low interest rates has allowed companies to borrow excessive amounts of money through bonds to grow their businesses. Rolling a bond means buying another bond to pay for the principle payment due. The debt cascades and remains acceptable risk bets when interest rates remain low. However, inflation causes interest rates to rise causing the debt financing to become burdensome and eventually forcing default.[Learn More...]
(hits=15) When credit expands, then risk increases by default. The increase risk of inflation causes interest rates to rise to offset potential loss due to bad loans and investments. Additionally, inflation causes taxation to increase to pay for government programs and public works such as: roads, bridges, power plants and other projects. Rising interest rates and increased taxes slow the economy down, decreasing growth.[Learn More...]
(hits=18) Why is a trade deficit inflationary? Historically, gold flowed out of a country when it owed money to another country. The outflow of gold increased the credit rate resulting in fewer imports to being bought from other countries. Likewise, as gold flowed into a country, credit expanded to other countries and exports increased. Expanding credit caused from a surplus of gold would cause an economic boom. The expansion of credit causes prices to inflate. Inflation causes higher production costs, making products and services more expensive, slowing exports. A state of equilibrium should mean as exports decrease, then imports should decrease as trade deficits increase.[Learn More...]
(hits=17) Financial judgment seems to be in the horizon, however, I maybe optimistic, for financial reckoning is upon us, now. Interest is the great monster. It is immoral of inanimate objects to reproduce. Yet, this is exactly what interest does. It reproduces more debt. The compounding affect of interest becomes a burden and yokes men down into financial slavery. Interest never sleeps; it keeps compounding and oppressing.[Learn More...]
(hits=18) The works of God entice men to think of peace and living in God's presence. The world entices men to think about money. The works of God free men from tyranny and materialism. Men must prize their liberty to understand the peril of the times. The works of God entice men to think of eternal life.[Learn More...]
(hits=17) The Book of Mormon is a marvelous work and a wonder in our day. The Book of Mormon restores many of the plain and precious truths lost during the dark ages. The Book of Mormon demonstrates how men are blessed when they keep the laws and covenants of God. Additionally, the Book of Mormon warns of justice and wrath that will turn against secret combinations seeking to destroy the work of the Lord. When wars and rumors of wars start, then one can know that the wrath of God is bringing justice against the secret combinations, and it would be well to repent and avert judgment. Wars around the world for several decades have cost us about $20 trillion.[Learn More...]
(hits=17) The great promise made to Abraham was through his seed all nations of the earth would be blessed. The work of God commences to fulfill his promises to the House of Israel. The covenanted promises have not be nullified. Instead, the justice of God and God's works will proceed in strength during the most difficult times. Justice can not be ignored, changed, or done away with.[Learn More...]
(hits=17) "And when the day cometh that the wrath of God is poured out upon the mother of harlots, which the great and abominable church of all the earth, whose founder is the devil, then, at that day, the work of the Father shall commence, in preparing the way for the fulfilling of his covenants, which hath made to his people who are of the house of Israel." 1 Ne 14:17[Learn More...]
(hits=20) A great pit is created by the great and abominable church. The design is to hold men captive. It is filled by those who helped dig it. 1 Nephi 14 talks about the pit that is founded by the adversary and his children. The design of the great pit is to destroy free agency and hold men captive to materialism. Men lose their souls in pursuit of the corporate dream.[Learn More...]
(hits=19) The way the world works is by divine justice and works. God's justice and laws are immutable. Man's laws and justice are less perfect than divine justice and law. Justice is eternal. Without justice, there would be no law.[Learn More...]
(hits=13) This code snippet show how to use threads to change characters in four button squares to spell a word moving across the screen. The c# code will be converted to swift for a spelling game where kids whack at goofers to spell a word.[Learn More...]
(hits=30) Trump's tariffs on Chinese steel and aluminum will slow emerging market growth. Trump's duties were 25-percent on steel and 10-percent on aluminum. Countries most affected by the import tariff are Brazil, South Korea and China. South Korea is the third largest exporter of steel to the U.S. China exports aluminum to the U.S.[Learn More...]
(hits=32) Purchase power parity shows the ratio of prices in national currencies for the same good or service. Purchase power parity accounts for differences in inflation and pricing in different countries. The PPP adjusts to get one price for the commodity or service amongst all countries. Tarrifs, taxes and transportation costs affect the cost of the commodity. Purchase Power Parity gives insight into the overvaluation or undervaluation of a currency.[Learn More...]
(hits=35) President Trump said a 45-percent tariff on Chinese imports would be necessary to stop this unfair trade practice. China said it would not engage in significant exchange rate reforms. Trump does not like China's strong intervention in the currency markets and China's growing trade surplus. China is fighting its label as a currency manipulator. The loss of factories and jobs to foreign competition is a big concern.[Learn More...]
(hits=32) Trump's tariffs on Chinese steel and aluminum will slow emerging market growth. Trump's duties were 25-percent on steel and 10-percent on aluminum. Countries most affected by the import tariff are Brazil, South Korea and China. South Korea is the third largest exporter of steel to the U.S. China exports aluminum to the U.S. increased exports. In 2016, a dollar bought 6.5 yuan; however, the purchase power parity (PPP) was 5.7 RMB per dollar. The dollar was stronger against the yuan but bought less goods and services in China because of PPP. The Rembmini was 14-percent undervalued. The yuan appreciated 36% from 2005 to 2015. Chinese imports were becoming more expensive. Manufacturers began relocating from China to Vietnam, Indonesia and Africa.[Learn More...]

Top 20 Microtheories

Top 5 Questions

Recent Questions

Links


Help